📄 netsetup.sh
字号:
#/bin/bash## The script is based on the info on the web page## http://yolinux.com/TUTORIALS/LinuxTutorialIptablesNetworkGateway.html## The loopback device (lo) must be present. #ifconfig lo $1 netmask $2 broadcast $3# Example:# ifconfig lo 192.168.10.101 netmask 255.255.255.0 broadcast 192.168.1.255iptables --flushiptables --table nat --flushiptables --delete-chainiptables --table nat --delete-chainiptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADEiptables --append FORWARD --in-interface lo -j ACCEPT
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -