-
Good friend of the forums
Iptables redirect problem
Hi, I'm trying to redirect to another ip when I want to go to like google.com.
Like when I click on the web browser and to to google.com, it will redirect to my web page
So far I've tryed this
modprobe iptable_nat
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o rausb0 -j MASQUERADE
iptables -A PREROUTING -i rausb0 -t nat -p tcp -d www.google.com -j DNAT --to 192.168.5.103
I run this on my computer(compaq) then when I open a web browser and go to google, it displays the google homepage.
Any ideas, thanks
-
Good friend of the forums
Does any one have any ideas.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules