Re: Udostepnianie polaczenia internetowego
> Dnia poniedziałek, 7 sierpnia 2006 08:05, Grzegorz Szymański napisał:
> Próbowałeś zrobić najprościej jak można:
> http://www.jtz.org.pl/Inne/linux24-nat-4.html#ss4.1
Probowalem takze tym sposobem - bez zmian.
> Dnia poniedziałek, 7 sierpnia 2006 08:28, Robert Rakowski napisał:
> W przypadku kombinowania przez ISP z TTL widać to już przy poleceniu ping
icmp_seq=2 ttl=233 time=184 ms
Czyli wyglada na to ze nie, ale czytalem ze ISP moze sobie ustawic TTL inny
niz 1 (np 128) i potem sprawdzac czy pakiety nie maja TTLa znacznie nizszego
niz ten co ustawili (128).
W kazdym razie w dalszym ciagu internet na komputerze klienckim nie dziala,
ale komputery sie widza.
Ponizej tresc plikow konfiguracyjnych klienta i serwera:
Serwer - etc/network/interfaces:
> #---------------------------------------------------
> auto lo
> iface lo inet loopback
>
> mapping eth0
> script grep
> map eth0
>
> auto eth0
> allow-hotplug eth0
> iface eth0 inet dhcp
>
> auto eth1
> iface eth1 inet static
> address 192.168.1.1
> netmask 255.255.255.0
> #---------------------------------------------------
Klient - etc/network/interfaces:
> #---------------------------------------------------
> auto lo
> iface lo inet loopback
>
> mapping eth0
> script grep
> map eth0
>
> auto eth0
> allow-hotplug eth0
> iface eth0 inet static
> address 192.168.1.2
> netmask 255.255.255.0
> gateway 192.168.1.1
> hwaddress ether 00:50:FC:76:D4:80
>
> #---------------------------------------------------
Serwer - etc/resolv.conf:
> search pronet.lublin.pl
> nameserver 86.63.129.29
> nameserver 212.182.63.146
Klient - etc/resolv.conf:
> 194.204.152.34
> 194.204.159.1
> # DNSy TePsy
Serwer - ifconfig:
>#---------------------------------------------------------------------
> eth0 Link encap:Ethernet HWaddr 00:50:FC:76:D4:80
> inet addr:86.63.152.29 Bcast:86.63.153.255 Mask:255.255.254.0
> inet6 addr: fe80::250:fcff:fe76:d480/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:16187 errors:1 dropped:0 overruns:0 frame:0
> TX packets:1561 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:2216554 (2.1 MiB) TX bytes:211219 (206.2 KiB)
> Interrupt:169 Base address:0xd800
>
> eth1 Link encap:Ethernet HWaddr 00:0C:6E:C5:4A:0E
> inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
> inet6 addr: fe80::20c:6eff:fec5:4a0e/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:265 errors:0 dropped:0 overruns:0 frame:0
> TX packets:214 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:25065 (24.4 KiB) TX bytes:76021 (74.2 KiB)
> Interrupt:201 Base address:0xd400
> lo [....]
>#---------------------------------------------------------------------
Klient - ifconfig:
>#---------------------------------------------------------------------
> eth0 Link encap:Ethernet HWaddr 00:50:FC:76:D4:80
> inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
> inet6 addr: fe80::250:fcff:fe76:d480/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:214 errors:0 dropped:0 overruns:0 frame:0
> TX packets:277 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:76833 (75.0 KiB) TX bytes:25969 (25.3 KiB)
> Interrupt:11 Base address:0xb400
>#---------------------------------------------------------------------
Reply to: