Score:0

Iptables forward all traffic to a specified port and IP address, to another device

pl flag
iptables -t nat -A PREROUTING -p tcp --dport 4433 -j DNAT --to-destination 192.168.1.1:443
iptables -t nat -A POSTROUTING -p tcp -d 192.168.1.1 --dport 4433 -j SNAT --to-source 10.0.2.15

echo 1 > /proc/sys/net/ipv4/ip_forward

where ip address 10.0.2.15 is your iptables computer

Tried on ubuntu 20.4

telnet 10.0.2.15 4433 Trying 10.0.2.15... telnet: Unable to connect to remote host: Connection refused

telnet localhost 4433 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused

tilleyc avatar
us flag
What does a tcpdump show?
Sonu Jaiswal avatar
pl flag
No traffic on TCP Dump
A.B avatar
cl flag
A.B
This test will not work from the host, it has to be run from a 3rd system. else use nat/OUTPUT
Sonu Jaiswal avatar
pl flag
Thanks for your response
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.