Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    iptables / forwarding

    I've got the following rules setup

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

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

    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
    NYC, moved from KS & MO
    What's the output of this command:
    cat /proc/sys/net/ipv4/ip_forward
    If it's 0, do a
    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