Score:0

Get source Ip and port - NAT

wf flag
mwg

I routed all my traffic through my code . I used Iptables in Linux to forward all requests which requested 53 port with this command :

iptables -t nat -p udp -A OUTPUT -j DNAT --dport 53 --to-destination 127.0.0.1:3400

My code only received a requested query . There is no source Ip and Port number Then how can I realize the source Ip and Port number ? How VPN connections are working ? Is there using NAT too ?

jabbson avatar
sb flag
This is a delete statement (`-D`), are you sure about the statement? What do you mean by `There is no source Ip and Port number`? Where there is no ip and port? How did you check? How VPN connections are working is a very large topic, do you have specific questions? `Is there using NAT too?` Is where nat too?
mwg avatar
wf flag
mwg
Mistake . i meant Append in Iptables. I wonder about how can realize about souce ip and port because in my code I only can read source as ip and port which i used in as a destination in iptables rules.
I sit in a Tesla and translated this thread with Ai:

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.