Results 1 to 2 of 2

Thread: need iptable help forwarding ip.

  1. #1
    Join Date
    Oct 2007
    Beans
    139

    need iptable help forwarding ip.

    I have a eth0 ( outside ip ) with a eth0:1 ( lan ip/192.168.0.x ) I want to take all 8080 traffic from out side and direct it to 192.168.0.21:8080

    I tried

    Code:
    iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 8080 -j DNAT --to 192.168.0.21:8080
    and figured I may need

    Code:
    iptables -A FORWARD -p tcp -i eth0 -d 192.168.0.21 --dport 8080 -j ACCEPT
    but its not working. What did I do wrong?

  2. #2
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: need iptable help forwarding ip.

    Merged 3 threads on the same subject

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •