Showing posts with label firewall. Show all posts
Showing posts with label firewall. Show all posts

Friday, April 01, 2011

finally - NAT server works!

i'm using this template

#---------------------------------------------------------------  # Load the NAT module #  # Note: It is best to use the /etc/rc.local example in this  #       chapter. This value will not be retained in the  #       /etc/sysconfig/iptables file. Included only as a reminder.  #---------------------------------------------------------------    modprobe iptable_nat   #---------------------------------------------------------------  # Enable routing by modifying the ip_forward /proc filesystem file #  # Note: It is best to use the /etc/sysctl.conf example in this  #       chapter. This value will not be retained in the #         /etc/sysconfig/iptables file. Included only as a reminder.  #---------------------------------------------------------------    echo 1 > /proc/sys/net/ipv4/ip_forward    #---------------------------------------------------------------  # Allow masquerading # - Interface eth0 is the internet interface  # - Interface eth1 is the private network interface  #---------------------------------------------------------------    iptables -A POSTROUTING -t nat -o eth0 -s 192.168.1.0/24 -d 0/0 \           -j MASQUERADE     #---------------------------------------------------------------  # Prior to masquerading, the packets are routed via the filter  # table's FORWARD chain.  # Allowed outbound: New, established and related connections  # Allowed inbound : Established and related connections  #---------------------------------------------------------------    iptables -A FORWARD -t filter -o eth0 -m state \           --state NEW,ESTABLISHED,RELATED -j ACCEPT     iptables -A FORWARD -t filter -i eth0 -m state \           --state ESTABLISHED,RELATED -j ACCEPT 


thank you for faj-kumar for let me find this

Thursday, March 31, 2011

NAT made easy

new webmin module released. this is what i'm looking for

Simple Firewall Creator module released

Thanks to Manny Fernandez for open-sourcing a new module for easily creating firewalls on Linux and FreeBSD systems, using pre-built blocks of rules and services. You can download it from itsecure-firewall.wbm.gz, and install it in Webmin at Webmin Configuration ->Webmin Modules.

Thank you for developer. :)

Related Posts Plugin for WordPress, Blogger...