geneva icon indicating copy to clipboard operation
geneva copied to clipboard

NAT problem

Open raszia opened this issue 1 year ago • 0 comments

I found an issue with the NAT logic in your code. If the source IP address of a packet is changed to the IP address of the front router itself, the router will not perform NAT because the incoming packet is not from local network. As a result, the packet will not be correctly translated.

i have tested this with different routers and didn't work

sudo python3 engine.py --sender-ip myLocalIP --forward-ip destIP --routing-ip myPublicIpOnRouter --server-port 1289 --strategy "[TCP:flags:A]-duplicate(duplicate(duplicate,duplicate),duplicate(duplicate,duplicate(duplicate(duplicate,),)))-|" --log debug

raszia avatar Apr 30 '23 15:04 raszia