On Thu, Feb 21, 2002 at 11:40:45AM +0800, Kevin Chan wrote:
> Hi all,
> 
> Can someone teach me how to set the IP-Table on RedHat 7.2  ?
> 
> I would like to set the PPP Client IP-10.0.0.1 can browse interent through
> PPP Server IP-192.168.13.222.  The simple diagram as below :
> 
> > Internet(0.0.0.0)
> >       |
> > PPP Server-Internal Interface(192.168.13.222)
> >       |
> > PPP Client (10.0.0.1)
> 
> I was wrote the scripts on below files, but seem like don't work (p.s. these
> scripts is working on RH 7.0):
> 
>      etc/ppp/ip-up.local
>     ---------------------------
>     #!/bin/bash
>     ipchains -A forward -s 10.0.01 -d 0/0 -j MASQ
>     exit 0
> 
>      etc/ppp/ip-down.local
>     -------------------------------
>     #!/bin/bash
>     ipchains -D forward -s 10.0.0.1 -d 0/0 -j MASQ
>     exit 0
> 
> Please teach me how & where I can set the IP-Table to solve my
> problem........ thanks !
> 
> Best regards,
> Kevin Chan
iptables -t nat -A POSTROUTING -o pppx -j MASQUERADE
echo "1" > /proc/sys/net/ipv4/ip_dynaddr (if you get different ip when dialup)

i use this at home

btw i get from 
rc.firewall - Initial SIMPLE IP Firewall test script for 2.4.x
#
# Author: Oskar Andreasson <[EMAIL PROTECTED]>
# (c) of BoingWorld.com, use at your own risk, do whatever you please with
# it as long as you don't distribute this without due credits to
# BoingWorld.com
#



> 
> 
> 
> 
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list

-- 
ichtus
------
Lewi Supranata .K
ICQ: 50643061

Attachment: msg72448/pgp00000.pgp
Description: PGP signature

Reply via email to