netsetup.sh
来自「It s a tool designed to extract as much 」· Shell 代码 · 共 20 行
SH
20 行
#/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 + =
减小字号Ctrl + -
显示快捷键?