[olug] Routing and IPchains and IPmasquerading

Dean axeman at matrim.com
Thu Sep 6 15:58:37 UTC 2001


This seems to work good for me. :)

# by default, nothing is forwarded.
/sbin/ipchains -P forward REJECT
# anything going from inside network to outside is masqueraded
/sbin/ipchains -A forward -s 192.168.0.0/24 -d \! 192.168.0.0/24 -j MASQ
# anything going from one internal machine to another can pass unmolested
/sbin/ipchains -A forward -s 192.168.0.0/24 -d 192.168.0.0/24 -j ACCEPT



-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

For help contact olug-help at bstc.net - run by ezmlm
to unsubscribe, send mail to olug-unsubscribe at bstc.net
or `mail olug-unsubscribe at bstc.net < /dev/null`
(c)2001 OLUG http://www.olug.org

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_




More information about the OLUG mailing list