Find the answer to your Linux question:
Results 1 to 3 of 3
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2007
    Posts
    24

    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 10.8.1.10 --dport 80 -j DNAT --to 10.8.1.11

    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
    chusoon

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    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.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined!
    Join Date
    Dec 2009
    Posts
    4
    You are forwarding al 10.8.1.10 webreqeusts to the webserver on 10.8.1.11

    Is that what you whant to do?

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

  4. $spacer_open
    $spacer_close

Posting Permissions

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