首页 相关文章 使linux使用起来更有趣

使linux使用起来更有趣

好多好多使用技巧!~
iptables Port Mapping: # Route incoming ppp0 at port 80, to 192.168.1.1:22(ssh)iptables -A PREROUTING -t nat -p tcp -i ppp0 --dport 80 -j DNAT --to 192.168.1.1:22 iptables 更完善的IP Masquerading: # Load required modules#insmod ip_tables#insmod ip_conntrack#insmod iptable_nat#insmod ipt_MASQUERADE# Then flush all rulesiptables -Fiptables -t nat -F# Below means 'route 192.168.1.x'iptables -t nat -A POSTROUTING -d ! 192.168.1.0/24 -j MASQUERADEiptables -A FORWARD -s 192.168.1.0/24 -j ACCEPTiptables -A FORWARD -d 192.168.1.0/24 -j ACCEP...[ 查看全文 ]

使linux使用起来更有趣的相关文章

手机页面
收藏网站 回到头部