dndx / phantun

Transforms UDP stream into (fake) TCP streams that can go through Layer 3 & Layer 4 (NAPT) firewalls/NATs.
Apache License 2.0
1.71k stars 138 forks source link

Bad TCP SYN packet from xx-ip:22237, sending RST #104

Closed xiaolei0125 closed 1 year ago

xiaolei0125 commented 1 year ago

server: iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 5680 -j DNAT --to-destination 192.168.201.2 server: RUST_LOG=trace ./phantun_server --local 5680 --remote 127.0.0.1:5666
TRACE fake_tcp > Cache miss, checking the shared tuples table for connection TRACE fake_tcp > Bad TCP SYN packet from xx-ip:22237, sending RST

client: RUST_LOG=trace ./phantun_client --local 127.0.0.1:5666 --remote xx-ip:5680 INFO client > New UDP client from 127.0.0.1:42573 INFO fake_tcp > Sent SYN to server TRACE fake_tcp > Cache miss, checking the shared tuples table for connection TRACE fake_tcp > Storing connection information into local tuples INFO fake_tcp > Fake TCP connection to (Fake TCP connection from 192.168.200.2:22237 to xx:10709) closed ERROR client > Unable to connect to remote xx:10709

dndx commented 1 year ago

Might be random port scanning, should not affect your performance.