#!/bin/sh echo 1 > /proc/sys/net/ipv4/ip_forward INET=”wlp3s0″ INETIP=”$(ifconfig $INET | sed -n ‘/inet addr/{s/.addr://;s/ .//;p}’)” iptables -t nat -A POSTROUTING -o $INET -j SNAT –to-source $INETIP
Category Archives: IP
Address Classes
Class IP(Binar, first 8 bits) A 0xxx xxxx B 10xx xxxx C 110x xxxx D 1110 xxxx see also: http://www.cs.wustl.edu/~jain/bnr/ftp/f14_ipa/sld005.htm