Přiznávám, že jsem už úplně zoufalý z toho, že mi nefunguje sdílení připojení k Internetu. Zkoušel jsem už asi čtyři postupy dle různých návodů na webu, ale pořád nic... je to k vzteku. Dříve mi to hned fungovalo, teď se někde asi objevil problém.
Naposledy jsem postupoval dle HOWTO zde na foru (
http://forum.ubuntu.cz/viewtopic.php?id=3295).
Na desktopu je to nastavené takto:
ifconfig:
eth0 Link encap:Ethernet HWaddr 00:4F:4E:14:CC:9F
inet addr:192.168.167.78 Bcast:192.168.167.255 Mask:255.255.255.0
inet6 addr: fe80::24f:4eff:fe14:cc9f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:182464 errors:0 dropped:0 overruns:0 frame:0
TX packets:141307 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:222040820 (211.7 MiB) TX bytes:11833758 (11.2 MiB)
Interrupt:10 Base address:0xc000
eth1 Link encap:Ethernet HWaddr 00:E0:7D:EB:36:2A
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:7dff:feeb:362a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:38 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3500 (3.4 KiB) TX bytes:3926 (3.8 KiB)
Interrupt:11 Base address:0xe000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:252 (252.0 b) TX bytes:252 (252.0 b)
firehall je nastaven,
sudo cat /etc/firehol/firehol.conf
au@knihovna:~$ sudo cat /etc/firehol/firehol.conf
version 5
# Accept all client traffic on any interface
# interface any world
# client all accept
DEFAULT_CLIENT_PORTS="1024:65535"
server_icq_ports="tcp/5190"
client_icq_ports="default"
interface eth1 internal
protection strong 10/sec 10
policy drop
server dns accept
server http accept
server https accept
server netbios_ns accept
server netbios_dgm accept
server netbios_ssn accept
server samba accept
server squid accept
server ssh accept
server icmp accept
server ping accept
client all accept
interface eth0 external
protection strong 10/sec 10
policy drop
server ssh accept
client dns accept
client icmp accept
client ping accept
client telnet accept
client http accept
client https accept
client ftp accept
client ntp accept
client ssh accept
client icq accept
client jabber accept
client webcache accept
router internal2external inface eth1 outface eth0
masquerade
route all accept
uni@knihovna:~$ sudo cat /etc/default/firehol
START_FIREHOL=YES
#If you want to have firehol wait for an iface to be up add it here
WAIT_FOR_IFACE=""
mezi desktopem a nb mi ping funguje naprosto bezproblémově, dokonce se i z nb na desktop připojuji přes ssh a využívám alespoň elinks a irssi:)
uni@knihovna:~$ ping -c 10 10.0.0.20
PING 10.0.0.20 (10.0.0.20) 56(84) bytes of data.
64 bytes from 10.0.0.20: icmp_seq=1 ttl=64 time=3.32 ms
64 bytes from 10.0.0.20: icmp_seq=2 ttl=64 time=0.279 ms
64 bytes from 10.0.0.20: icmp_seq=3 ttl=64 time=0.233 ms
64 bytes from 10.0.0.20: icmp_seq=4 ttl=64 time=0.238 ms
64 bytes from 10.0.0.20: icmp_seq=5 ttl=64 time=0.268 ms
64 bytes from 10.0.0.20: icmp_seq=6 ttl=64 time=0.241 ms
64 bytes from 10.0.0.20: icmp_seq=7 ttl=64 time=0.245 ms
64 bytes from 10.0.0.20: icmp_seq=8 ttl=64 time=0.224 ms
64 bytes from 10.0.0.20: icmp_seq=9
Ještě bych dodal, že notebook je nastaven takto:
ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:FC:2C:BF:0E
inet addr:10.0.0.20 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:fcff:fe2c:bf0e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:79 errors:0 dropped:0 overruns:0 frame:0
TX packets:113 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9636 (9.4 KiB) TX bytes:11947 (11.6 KiB)
Interrupt:10 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 b) TX bytes:100 (100.0 b)