jump to navigation

เอา iptables มาพ่วงกับ interface พฤศจิกายน 26, 2008

Posted by linix in Linux, ubuntu.

*THIS DID NOT WORK FOR US WHEN WE UPGRADED TO 8.04, Caused an error on startup and took forever to boot. We ended up using firestarter instead of iptables on 8.04*

Write your IPTABLES rules

Save the current rules to a file
sudo sh -c “iptables-save > /etc/iptables.rules”
Add the restore command to the interface device that you are trying to lockdown eg eth0 (add this at the end of the eth0 section)
pre-up iptables-restore < /etc/iptables.rules
Add the post down command to the end of the network lines
post-down iptables-restore < /etc/iptables.rules

Reboot and type sudo iptables -list to see if the rules have taken

Credit: http://techteam.wordpress.com/2008/01/07/save-iptables-so-that-it-initiates-on-start-uprebootifup-etc/



1. margaretterandolph - เมษายน 10, 2016

u5317u4eacu300au65b0u4eacu62a5u300bu603bu7f16u8f91u548cu4e24??u526fu603bu7f16u88abu89e3?u4e4b?uff0cu8be5u62a5u7ea6100??u8bb0u8005u548cu7f16u8f91u4e3eu Click http://getl.eu/?i=justgoo100745


Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  เปลี่ยนแปลง )

Google+ photo

You are commenting using your Google+ account. Log Out /  เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out /  เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out /  เปลี่ยนแปลง )


Connecting to %s

%d bloggers like this: