远程桌面:
iptables -t nat -A PREROUTING -d 210.26.24.98 -p tcp --dport 3389 -j DNAT --to 192.168.200.199:3389 iptables -t nat -A POSTROUTING -d 192.168.200.199 -p tcp --dport 3389 -j SNAT --to 210.26.24.98
内网192.168.200.199
外网210.26.24.98
网页映射:
iptables -t nat -A PREROUTING -d 210.26.24.98 -p tcp --dport 80 -j DNAT --to 192.168.200.199:80 iptables -t nat -A POSTROUTING -d 192.168.200.199 -p tcp --dport 80 -j SNAT --to 210.26.24.98
内网192.168.200.199
外网210.26.24.98
以规则mac地址禁用客户机:
iptables -A INPUT -m mac --mac-source 00:00:00:00:00:01 -j DROP
iptables设置远程桌面端口映射 禁止特定mac地址访问 by 桔子小窝 is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.