Loading formats...
centos 6 - configure iptables
C
CentOS Tutorials
5 views • Jan 14, 2016
Description
setting iptables on centos 6 :
1/ iptables -F
2/ iptables -A INPUT -i lo -j ACCEPT
3/ iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
4/ iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
5/ iptables -A INPUT -p tcp -m tcp --dport 5901 -j ACCEPT
6/ iptables -P OUTPUT ACCEPT
7/ iptables-save | sudo tee /etc/sysconfig/iptables
8/ service iptables restart
1/ iptables -F
2/ iptables -A INPUT -i lo -j ACCEPT
3/ iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
4/ iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
5/ iptables -A INPUT -p tcp -m tcp --dport 5901 -j ACCEPT
6/ iptables -P OUTPUT ACCEPT
7/ iptables-save | sudo tee /etc/sysconfig/iptables
8/ service iptables restart
Discover more
Keywords & tags
More from this user
12:15
Linus Torvalds Jim Zemlin Q& A LinuxCon North America 2015
CentOS Tutorials
02:30
Linux Kernel Developer Workspaces Hans Verkuil
CentOS Tutorials
04:16
Linus Torvalds Guided Tour of His Home Office
CentOS Tutorials
02:03
Kernel Developer Workspaces Linaro's Mark Brown - Travel Edition
CentOS Tutorials
07:05
Ubuntu - record a high quality screencast
CentOS Tutorials
08:57
centos 7 - XEN
CentOS Tutorials
Related videos
11:01
STATIC IP CONFIGURING -CentOS (Linux)
Filmi Gaane (Bollywood)
12:59
[Info] CentOS - la plus mauvaise distribution linux ?
kadogo
05:18
Installing Maven 3.2.3 on CentOS 7, Fedora, CentOS, Red Hat and Scientific Linux by Johnathan Mark Smith
Johnathan Smith
23:28
centos 6 - configure DNS Bind Server
CentOS Tutorials
10:35
How to Install and Configure DNS Server in CentOS (Bangla)
e-knowledge
05:35
CentOS 7 configure vncserver (tigervnc-server)
e-knowledge