Results 1 to 2 of 2

Thread: Iptables redirect problem

  1. #1
    Good friend of the forums
    Join Date
    Jun 2008
    Posts
    425

    Default 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

  2. #2
    Good friend of the forums
    Join Date
    Jun 2008
    Posts
    425

    Default

    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
  •