26

Odp: TTL

1. Edytorem - nano lub vi, jak wolisz
2. lub zrób echo "iptables -t mangle -I PREROUTING 1 -i wlan1 -j TTL --ttl-inc 1" > /etc/firewall.user  (tylko raz!)

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

27

Odp: TTL

zrobilem, z tym ze ciagle jak pinguje onet to mam ttl46

root@Gargoyle:~#  cat /etc/firewall.user
iptables -t mangle -I PREROUTING 1 -i wlan1 -j TTL --ttl-inc 1


Pinging onet.pl [213.180.141.140] with 32 bytes of data:
Reply from 213.180.141.140: bytes=32 time=54ms TTL=46
Reply from 213.180.141.140: bytes=32 time=53ms TTL=46
Reply from 213.180.141.140: bytes=32 time=60ms TTL=46
Reply from 213.180.141.140: bytes=32 time=109ms TTL=46

Ping statistics for 213.180.141.140:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 53ms, Maximum = 109ms, Average = 69ms

28

Odp: TTL

A poprzednio miałeś 40. Pingowałeś to samo?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

29

Odp: TTL

tak
poprzednio pingowalem 8.8.8.8   i mialem 40
onet 46

teraz mam
C:\Users\bob>ping 8.8.8.8

Pinging 8.8.8.8 with 32 bytes of data:
Reply from 8.8.8.8: bytes=32 time=32ms TTL=39
Reply from 8.8.8.8: bytes=32 time=26ms TTL=39
Reply from 8.8.8.8: bytes=32 time=29ms TTL=39
Reply from 8.8.8.8: bytes=32 time=39ms TTL=39

Ping statistics for 8.8.8.8:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 26ms, Maximum = 39ms, Average = 31ms

C:\Users\bob> ping onet.pl

Pinging onet.pl [213.180.141.140] with 32 bytes of data:
Reply from 213.180.141.140: bytes=32 time=55ms TTL=46
Reply from 213.180.141.140: bytes=32 time=57ms TTL=46
Reply from 213.180.141.140: bytes=32 time=55ms TTL=46
Reply from 213.180.141.140: bytes=32 time=58ms TTL=46

Ping statistics for 213.180.141.140:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 55ms, Maximum = 58ms, Average = 56ms

30

Odp: TTL

A teraz zrób

iptables -t mangle -I PREROUTING 1 -i wlan1 -j TTL --ttl-inc 2
ping onet.pl

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

31

Odp: TTL

ciagle ttl 46

Pinging onet.pl [213.180.141.140] with 32 bytes of data:
Reply from 213.180.141.140: bytes=32 time=83ms TTL=46
Reply from 213.180.141.140: bytes=32 time=52ms TTL=46
Reply from 213.180.141.140: bytes=32 time=54ms TTL=46
Reply from 213.180.141.140: bytes=32 time=53ms TTL=46

Ping statistics for 213.180.141.140:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 52ms, Maximum = 83ms, Average = 60ms

32

Odp: TTL

ale jak robie

root@Gargoyle:~# cat /etc/firewall.user
iptables -t mangle -I PREROUTING 1 -i wlan1 -j TTL --ttl-inc 1

to nie chce zmienic na inc2

33

Odp: TTL

Pokaż mi jeszcze wynik  route -n

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

34

Odp: TTL

root@Gargoyle:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.43.1    0.0.0.0         UG    0      0        0 br-wan
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan
192.168.43.0    0.0.0.0         255.255.255.0   U     0      0        0 br-wan
192.168.43.1    0.0.0.0         255.255.255.255 UH    0      0        0 br-wan

35

Odp: TTL

Ty wychodzisz przez br-wan teraz, nie wlan1. Więc zrób

echo "iptables -t mangle -I PREROUTING 1 -i br-wan -j TTL --ttl-inc 1" > /etc/firewall.user

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

36

Odp: TTL

ufff, nareszcie dziekuje
zobacze czy to pomoze przy lyca belgium i dam znac