You are not logged in.

#1 2017-06-18 15:48:04

CyberNhull
Member
Registered: 2013-01-27
Posts: 99

Iptables port redirection

I'm studying Networking and experimenting with my network. I've made an Arpspoof program in Python 3 that is working as expected.
Now i'm trying to redirect the HTTP traffic from my other pc (let's call it the victim) to another port on my laptop while maintaining his connection to the HTTP web sites, so i wrote the following rule in iptables on my laptop:

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 10001

Doing this it causes the victim to be unable to access HTTP web sites which is not what i'm looking for here.
So I'm guessing i'm not redirecting the traffic that goes to port 10001 back to the gateway, so my question is what rule can i make so i can achieve this?

Any tip or help would be appreciated big_smile


If it does not kill you....It will make you smarter

Offline

Board footer

Powered by FluxBB