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
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