Goal: enable us to use the iptables command in the terminal
Reference: http://articles.slicehost.com/2008/1/30/centos-setup-page-1#comment-2869
Environment:
- CentOS 5.2
- vi
- bash
Steps:
- Add /sbin to your path by editing your ~./bash_profile: user $ vi ~/.bash_profile
- Append /sbin to the PATH definition. In my file, this looks like: PATH=$PATH:$HOME/bin –> PATH=$PATH:$HOME/bin:/sbin
- Save and close ~/.bash_profile
- Reload ~/.bash_profile: user $ source ~/.bash_profile