Find the answer to your Linux question:
Results 1 to 2 of 2
I've got the following rules setup iptables -A PREROUTING -t nat -j DNAT -p tcp -i eth0 -d 208.109.234.83 --to-destination 172.16.197.128 iptables -A POSTROUTING -t nat -j SNAT -o eth0 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    1

    iptables / forwarding


    I've got the following rules setup

    iptables -A PREROUTING -t nat -j DNAT -p tcp -i eth0 -d 208.109.234.83 --to-destination 172.16.197.128
    iptables -A POSTROUTING -t nat -j SNAT -o eth0 -s 172.16.197.128 --to-source 208.109.234.83

    iptables -I FORWARD -j ACCEPT -s 172.16.197.128
    iptables -I FORWARD -j ACCEPT -d 172.16.197.128

    So, this is for Solaris running on VMWare server (for grins and giggles).

    Solaris can talk to the host OS and and the host OS can talk to Solaris in the VM

    External forwarding, however is not working.

    I've run into a brick wall trying to figure out what the problem is with these rules.

    Any thoughts/solutions? I've got to be doing something completely daft.

    Addendum: Can't do bridging because the network I'm on using MAC Security to stop people from ganking other IPs. I'm using host-only NAT forwarding.

  2. #2
    Linux User
    Join Date
    May 2008
    Location
    NYC, moved from KS & MO
    Posts
    251
    What's the output of this command:
    Code:
    cat /proc/sys/net/ipv4/ip_forward
    If it's 0, do a
    Code:
    echo 1 > /proc/sys/net/ipv4/ip_forward

Posting Permissions

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