Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 12 of 12
kindly find below the rules we had declared on /etc/rc.local Code: sudo iptables -A FORWARD -i eth0 -s 192.168.1.0/24 -j DROP sudo iptables -A FORWARD -i eth0 -o eth0 -j ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined!
    Join Date
    Jul 2009
    Posts
    9

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

    Code:
    sudo iptables -A FORWARD -i eth0 -s 192.168.1.0/24 -j DROP
    sudo iptables -A FORWARD -i eth0 -o eth0 -j DROP
    
    sudo iptables -A FORWARD -d 192.168.0.0/24 -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 192.168.0.203:5900
    sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport  80 -j DNAT --to-dest 192.168.0.204:80
    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
    Location
    The Keystone State
    Posts
    2,677
    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?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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