Re: Changing TTL of incoming packets?



Just play with raw sockets and change TTL field in IP header , look at
RFC791 where it is but be aware that dummy header have to be changed too ,
to better understanding learn the steps of raw socket game from
http://www.codeguru.com/network/tcpip_lib31.html
Arkady

"Angel Tsankov" <fn42551@xxxxxxxxxxxxxxxx> wrote in message
news:O%23uqPha6FHA.3276@xxxxxxxxxxxxxxxxxxxxxxx
>
> "Pavel A." <pavel_a@xxxxxxxxxxxxxxx> wrote in message
> news:uNk4ulW6FHA.2036@xxxxxxxxxxxxxxxxxxxxxxx
>> "Angel Tsankov" <fn42551@xxxxxxxxxxxxxxxx> wrote in message
>> news:uq4cdJW6FHA.252@xxxxxxxxxxxxxxxxxxxxxxx
>>> Well, let's concentrate on the gateway case. When the gateway receives a
>>> packet (from the Internet) it usually has to forward it to the host
>>> that's waiting for it. Unfortunately, if the TTL is 1 the gateway will
>>> drop the packet and the host will get nothing. Can I change the TTL of
>>> packets from 1 to, say, 2 in order to avoid this problem?
>>
>> Depends on who are you. If you are (in) the gateway, you can.
>>
>> --PA
>
> Yes, I am in the gateway. How do I do it?


.



Relevant Pages

  • Re: Changing TTL of incoming packets?
    ... You change packet and send it to gateway, ... >> RFC791 where it is but be aware that dummy header have to be changed too ... but what if the gateway uses raw sockets too? ...
    (microsoft.public.win32.programmer.networks)
  • Network traffic: ttl
    ... I found that gateway I use, sometimes receives packets from my FreeBSD ... they always got ttl 64. ...
    (freebsd-stable)
  • Network traffic: ttl
    ... I found that gateway I use, sometimes receives packets from my FreeBSD ... they always got ttl 64. ...
    (freebsd-net)
  • Re: Changing ttl of incoming packets
    ... make the IP forwarding decrement the IP TTL more than by one? ... > the packets it receives are with IP TTL 1, and the gateway will not able to ... So how this dsl/cable modem gateways change theirs ttl to 1? ... UNIX is simple; it just takes a genius to understand its simplicity ...
    (freebsd-hackers)
  • Re: Changing TTL of incoming packets?
    ... if the TTL is 1 the gateway will drop the packet and the host will get ... Can I change the TTL of packets from 1 to, say, 2 in order to avoid this problem? ... If you are the gateway, ...
    (microsoft.public.win32.programmer.networks)

Loading