On Thu, 16 Aug 2001 at 19:09, zorkdork wrote:
> anybody here use that as their masq server?
I do. And mine is about the most straightforward. I have an init.dsl
script that is run everytime my PLDT DSL link goes up. Its contents:
-----[ init.dsl ]-----
#! /bin/sh
IPTABLES=/sbin/iptables
ROUTE=/sbin/route
case "$1" in
up)
$ROUTE add default gw "$2"
echo "1" > /proc/sys/net/ipv4/ip_forward
$IPTABLES -t nat -F
$IPTABLES -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j
MASQUERADE
;;
down)
$ROUTE del default gw "$2"
$IPTABLES -t nat -F
echo "0" > /proc/sys/net/ipv4/ip_forward
;;
*)
esac
exit 0
-----[ end init.dsl ]-----
> the HOWTO for the 2.4 allowed my internal_masq clients to ping the IP
> of the external eth, but not anything else
Which HOWTO is this?
--> Jijo
--
Federico Sevilla III :: [EMAIL PROTECTED]
Network Administrator :: The Leather Collection, Inc.
GnuPG Key: <http://jijo.leathercollection.ph/jijo.gpg>
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]