Score:0

After setting a forwarding (routing) I cannot download files from servers

ru flag

I have found these codes on www to create a proxy for a software:

sysctl net.ipv4.ip_forward=1
sysctl -w net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -j MASQUERADE
iptables -t nat -A PREROUTING -p udp --dport 2442 -j DNAT --to-destination some.ip.address:some.port

The 2442 is the port that I use to connect the software. The some.ip.address:some.port is destination's ip address and port. After setting these rules, I'm not able to download files from servers. How can I download files from servers with these rules applied? PS: If I clear the iptables rules, it's fine. But after settings these rules It's not fine.

vidarlo avatar
ar flag
It's not entirely clear what you attempt to achieve and what's not working.
us flag
Please explain what "proxy for a software", "I'm not able to download files from servers" exactly mean.
Jaromanda X avatar
ru flag
the solution is to `clear the iptables rules` because then `it's fine` - explain why you think you need the rules in the first place, since clearly `it's fine` before you add some random rules for no reason
Erikli avatar
ru flag
I am trying to make a proxy for a voice software which is TeamSpeak3. In TeamSpeak3, your IP is visible by all admins. I set those rules for hiding my IP with machine's IP. So I can't clear them.
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.