Modify ip-tables directly in ubuntu

To modify ip-tables directly in ubuntu

First save off your current config:

$ sudo -s $ iptables-save > /root/working.iptables.rules

$ iptables-save > /root/working.iptables.rules.to.modify

At this point you can modify the file.  Once your are satisfied restore it

# iptables-restore < /root/working.iptables.rules.to.modify

 

redhat apache start on boot

if you already have apache installed on redhat linux

# chkconfig httpd on # /etc/init.d/httpd start

Red Hat Linux cheat sheet commands examples RHEL

Useful Linux Commands (Red Hat)

(http://www.cse.buffalo.edu/~eisner/DLW) Revised 3/1/2000

Getting information man commandname display the manual page for a particular command named commandname man -S sectionnumber commandname display the manual page under a specific section numbered sectionnumber for the command named commandname. Sometimes the same command will exist in more than one section. man alone will . . . → Read More: Red Hat Linux cheat sheet commands examples RHEL

restart apache redhat

/etc/rc.d/init.d/httpd restart