摘要:
最近在学习使用iptables做网关服务器,即SNAT设置 我们的宿主机有两块网卡,地址分别是: 192.168.6.108/24 192.168.66.119/24 我们的目标是在虚拟机VMware上添加两块网卡,分别连接到这两各网卡上,然后通过iptables实现虚拟机的路由功能。 对虚拟机的设 阅读全文
摘要:
应用自:https://www.cnblogs.com/maryl/articles/2330119.html latex中希腊字母的输入: 阅读全文
摘要:
我的网络配置跟教程中的这个略有不同: web server:192.168.66.101 nat server:192.168.66.188;192.168.6.172 client:192.168.6.188 首先查看nat server 的网卡: 然后我们在 nat server 上启动ip的前 阅读全文
摘要:
阅读全文
摘要:
/etc/init.d/iptables save #查看 vim /etc/sysconfig/iptables #将iptables设置为开机启动 chkconfig iptables on #查看设置结果 chkconfig --list | grep iptables 这个教程中是mac系统 阅读全文
摘要:
iptables -I INPUT -i lo -j ACCEPT #允许本地回环地址访问; iptables -I INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A INPUT -s 192.168.235.0/24 阅读全文