Ubuntu Firewall - easy way
On Fri, Jul 27, 2012 at 11:17 AM, Valter Nogueira <valter@fastway.com.br> wrote:
Is there any easy way to implent a firewall on Ubuntu?
No GUI needed! Default policy, allow local connections to myself, my own established connections that I initialize to anywhere else, and drop the rest. This assumes you aren't running any services you want exposed.
*# flush rules*iptables -F INPUTiptables -P INPUT DROP# allow loopback trafficiptables -A INPUT -s lo -j ACCEPT# allow established connections
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT# everything else droppped.*Paste into /etc/rc.local.*
--
Hal
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
|