Find the answer to your Linux question:
Results 1 to 3 of 3

Thread: iptables NAT

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    iptables NAT

    Dear All:

    i was install an fedora 9 at a virtual server with 2 interface (actual & virtual , eth0, eth0:1)

    now i was tried to set up a NAT rules to translate an ip to other ip address (different network);

    iptables -t nat -A PREROUTING -i eth0 -p tcp -s --dport 80 -j DNAT --to

    but it was not working. (i was accept all incoming and outgoing traffic at first row of policy)

    any ideas what wrong?

    thanks & best regards

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    The Keystone State
    First you should really think about upgrading to the latest version of Fedora. 9 is older hen dirt today.

    Second you should be looking at the Tutorials for IPTABLES.


    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    You are forwarding al webreqeusts to the webserver on

    Is that what you whant to do?

    (You have to enable forwarding to - but i guess you have)

  4. $spacer_open

Posting Permissions

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