DebianをルータにしてNATする。
# emacs /etc/sysctl.conf
net.ipv4.ip_forward = 1
# sysctl -p
#!/bin/sh IPTABLES="/sbin/iptables" #NIC Define global='eth0' local='eth1' #IP address range local_range='192.168.1.0/24' any='0.0.0.0/0' #INIT iptables -t nat -F #ACCEPT from localnet $IPTABLES -A FORWARD -i $local -o $global -s $local_range -j ACCEPT $IPTABLES -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT #for NAT $IPTABLES -t nat -A POSTROUTING -o $global -s $local_range -j MASQUERADE
Total:4097 / Today:1 / Yesterday:2