i have problem using access point as repeater/wisp mode. TTL don’t allow internet to pass in this situation of ttl 1.
how can i use this access point wirelessly if ttl don’t allow.
i only change in mangle.. any help solving my problem appreciated
i have problem using access point as repeater/wisp mode. TTL don’t allow internet to pass in this situation of ttl 1.
how can i use this access point wirelessly if ttl don’t allow.
i only change in mangle.. any help solving my problem appreciated
my line is fiber not LTE.
and my current setup is hotspot with ttl 1 so no one can share the wifi from thier phone…or tether.. my problem is i have a extra access point and setup to repeater through wireless mode. while i repeat the signal through wifi the repeater device cant provide internet cuz of the ttl set to 1.
so how to fix this problem.. i want to repeat my signal
You have identified the problem … it’s your setting of TTL = 1 … and every router has to drop packet which reaches TTL=0 while in transit. So it’s nothing specific to MT, any router would do it unless they are systematically trying to solve non-existing problem and play with TTL in non-standard ways.
TTL: why do we have it? It’s protection against L3 loops. Every packet has TTL field, which is set by original packet transmitter. In IPv4 and IPv6 it’s an 8-bit value, so it’s value can range from 0 to 255. Usually transmitters set initial value to something pretty low, e.g. 32 or 64. When any router handles a packet, passing towards its destination, they decrease value of TTL by 1. If, after the operation, value of TTL is 0, packet has to be discarded. And in this case many routers produce ICMP time exceeded packet, sent back to source IP address.
This mechanism is (ab)used by commands like “traceroute” … they send out packets with TTL starting at and increasing by one … then they display IP address of router creating that ICMP time exceeded packet.
So in your case: if you mangle packet TTLs to be 1, then next hop router will decrease it (to 0) and drop it.
And, BTW, some ISPs, MNOs and public WiFI AP operators try to block WiFi and internet sharing. Detecting that internet is being shared (versus “fair” use) is very problematic and some had same idea as you do (check value of TTL). And then people, who want to share their internet connection, learned about the method and developed ways around it. Which means that your efforts will not be “water tight” … I don’t want to call them “futile” because there will be users who don’t know the workarounds (yet).
You need to change the prerouting or postrouting from 1 to 64 hops