08 2018 档案
摘要:内部192.168.0.2:80 映射到外部216.94.87.37:8080 iptables -t nat -A PREROUTING -d 216.94.87.37 -p TCP --dport 8080 -j DNAT --to-destination 192.168.0.2:80 用一个单
阅读全文
摘要:iptables -N filter_forwardiptables -F filter_forward iptables -A FORWARD -j filter_forward iptables -N mac_filteriptables -F mac_filter iptables -A fi
阅读全文
摘要:netfilter 子系入口在L3,完成后把数据包发往L4 netfilter 主要功能: 数据包选择(iptables) 数据包过滤 网络地址转换(NAT) 数据包操纵(在路由选择之前或之后修改数据包头的内容) 连接跟踪 网络统计信息收集 常见框架 IPVS:一种传输层负载均衡解决方案。 IP s
阅读全文
摘要:1. linux中 xl2tpd VPN连接需要两个程序 xl2tpd 和pppd并且pppd包含l2tpd.so库。 并且需要两个配置文件 一个xl2tpd配置文件一个pppd配置文件当xl2tpd启动时会调用pppd. root@router:~/xl2tpd# cat options.xl2t
阅读全文
浙公网安备 33010602011771号