Research Article

Design of Cyberwar Laboratory Exercises to Implement Common Security Attacks against IEEE 802.11 Wireless Networks

Algorithm 4

IPtable code to provide Internet access for the victims.
ifconfig at0 10.0.0.1 netmask 255.255.255.0
ifconfig at0 mtu 1400
route add -net 10.0.0.0 netmask 255.255.255.0 gw
10.0.0.1
iptables –flush
iptables –table nat –flush
iptables –delete-chain
iptables –table nat –delete-chain
iptables -P FORWARD ACCEPT
iptables –table nat -A POSTROUTING -o eth1 -j
MASQUERADE
echo > “/var/lib/dhcp3/dhcpd.leases”
/etc/init.d/dhcp3-server restart
echo “1" > /proc/sys/net/ipv4/ip_forward