All pastes #115474 Raw Edit

Anonymous

public shellscript v1 · immutable
·published 2006-08-04 16:38 UTC
rendered paste body
IPTables="/sbin/iptables"### Local networkLAN_network="192.168/16"###### Activates IP Masquerade###$IPTables --table nat --append POSTROUTING \	--source $LAN_network \	--jump MASQUERADE &&###### Forwards packets from local network to Internet###$IPTables --table filter --append FORWARD \	--source $LAN_network \	--jump ACCEPT &&$IPTables --table filter --append FORWARD \	--destination $LAN_network \	--match state --state ESTABLISHED,RELATED \	--jump ACCEPT &&###### Accepts all communications from and to local network###$IPTables --table filter --append INPUT \	--source $LAN_network	--jump ACCEPT &&$IPTables --table filter --append OUTPUT \	--destination $LAN_network	--jump ACCEPT &&