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

    kindly find below the rules we had declared on /etc/rc.local

    sudo iptables -A FORWARD -i eth0 -s -j DROP
    sudo iptables -A FORWARD -i eth0 -o eth0 -j DROP
    sudo iptables -A FORWARD -d -m state --state ESTABLISHED,RELATED -i eth0 -j ACCEPT
    sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    #sudo iptables -t nat -A POSTROUTING -j ACCEPT
    sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport  5900 -j DNAT --to-dest
    sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport  80 -j DNAT --to-dest
    other than this, no where we had declared any rules

    Thanking you,

    S Ganesh

  2. #12
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    The Keystone State
    Sorry for the late reply, work before life now days. .

    Your firewall rules should be in a file called iptables. What OS are you running?

    Do you have any Policies set for your firewall?


    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

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