CentOS 5.6下pptpd vpn 服务器搭建
2012-05-13 12:10:03 来源:WEB开发网核心提示: [root@localhost ~]# iptables-save # Generated by iptables-save v1.3.5 on Sun May 13 11:30:41 2012*nat:PREROUTING ACCEPT [3581:1078915]:POSTROUTING ACCEPT [9:59
[root@localhost ~]# iptables-save
# Generated by iptables-save v1.3.5 on Sun May 13 11:30:41 2012
*nat
:PREROUTING ACCEPT [3581:1078915]
:POSTROUTING ACCEPT [9:593]
:OUTPUT ACCEPT [9:593]
-A POSTROUTING -s 172.28.29.0/255.255.255.0 -o eth0 -j MASQUERADE
COMMIT
# Completed on Sun May 13 11:30:41 2012
# Generated by iptables-save v1.3.5 on Sun May 13 11:30:41 2012
*filter
:INPUT ACCEPT [3475:1092039]
:FORWARD DROP [23:928]
:OUTPUT ACCEPT [5142:1575131]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -s 172.28.29.0/255.255.255.0 -j ACCEPT
-A FORWARD -j RH-Firewall-1-INPUT
-A FORWARD -s 172.28.29.0/255.255.255.0 -j ACCEPT
-A FORWARD -s 172.28.29.0/255.255.255.0 -j ACCEPT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp -m icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -d 224.0.0.251 -p udp -m udp --dport 5353 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -s 0.0.0.0/255.255.255.0 -p tcp -m state --state NEW -m tcp -j ACCEPT
-A RH-Firewall-1-INPUT -s 172.28.29.0/255.255.255.0 -p tcp -m state --state NEW -m tcp -j ACCEPT
COMMIT
# Completed on Sun May 13 11:30:41 2012
# Generated by iptables-save v1.3.5 on Sun May 13 11:30:41 2012
*nat
:PREROUTING ACCEPT [3581:1078915]
:POSTROUTING ACCEPT [9:593]
:OUTPUT ACCEPT [9:593]
-A POSTROUTING -s 172.28.29.0/255.255.255.0 -o eth0 -j MASQUERADE
COMMIT
# Completed on Sun May 13 11:30:41 2012
# Generated by iptables-save v1.3.5 on Sun May 13 11:30:41 2012
*filter
:INPUT ACCEPT [3475:1092039]
:FORWARD DROP [23:928]
:OUTPUT ACCEPT [5142:1575131]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -s 172.28.29.0/255.255.255.0 -j ACCEPT
-A FORWARD -j RH-Firewall-1-INPUT
-A FORWARD -s 172.28.29.0/255.255.255.0 -j ACCEPT
-A FORWARD -s 172.28.29.0/255.255.255.0 -j ACCEPT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp -m icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -d 224.0.0.251 -p udp -m udp --dport 5353 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -s 0.0.0.0/255.255.255.0 -p tcp -m state --state NEW -m tcp -j ACCEPT
-A RH-Firewall-1-INPUT -s 172.28.29.0/255.255.255.0 -p tcp -m state --state NEW -m tcp -j ACCEPT
COMMIT
# Completed on Sun May 13 11:30:41 2012
七、Windows 下 PPTP VPN 客户端配置:
- ››CentOS下配置超级终端minicom
- ››Centos6.2_x86_64环境下puppet-dashboard安装配置...
- ››CentOS下建立本地YUM源并自动更新
- ››CentOS 安装 PostgreSQL 9.2
- ››CentOS 6.3 安装 Oracle 11gR2 依赖库检查失败处理...
- ››CentOS 6.X 系统初始化生产脚本
- ››CentOS 6下安装nodejs 0.9.0教程
- ››CentOS使用Screen管理会话选项
- ››CentOS+JDK+Tomcat+MySql&JDBCDriver 开发环境搭建...
- ››CentOS 5.6创建NFS文件共享服务器
- ››Centos下nis服务的搭建
- ››CentOS下Python升级记录
更多精彩
赞助商链接