Re: masquerade...

From: Zoran Davidovac (zdavid@unicef.org.yu)
Date: Mon Jun 05 2000 - 14:43:48 EST


Brent Turan wrote:
>
> Friends,
>
> I have been working on this for quite a while now and I am about to get so
> frustrated. What I am trying to do may be easy for you but it is enough to
> drive me crazy.
>
> I have been trying to set my linux box to be a masquerade server. I tried to
> read the doc (howto's and other stuff) on the internet and set it accordingly
> but it seems not to work...
>
> I have a Pentium 166 IBM computer. Configured for PPP and LAN. My server's
> ip number is 192.168.1.10 and the other two win98 workstations that I have
> are .1 and .2. I can ping them, they can ping me. I can make a PPP connection
> to my ISP and I can ping my dynamic IP address from the workstations. However,
> I cannot browse or ping anyone else on these two workstations.
>
> I am a newbie, so I dont know much about how to compile the kernel.
> I am assuming the version of Redhat (6.2 Standart) has already compiled with
> IP Masq modules. Thats question number one. Second is, no matter how many times
> I edit this ip_forward file (or something similar) to be 1 it defaults to 0
> everytime it boots up. Third question is, how to set DNS? am I even supposed to
> set it? WHich name server workstations are going to be looking at? Linux or
> ISP? Fourth and the last question is how can I found out if I need to compile
> my kernel (version 2.2.14-5) I go to /usr/src/ there is no linux directory there
> like they say in the docs. Am I supposed to create it?
>
> If anyone had the same problem or know the answers to these questions, it would
> help a bunch.....
>
> Bulent
> mbturantekin@ualr.edu
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/

it is easy :)

echo "Loading Masquerade Modules ..."
/sbin/modprobe ip_masq_autofw
/sbin/modprobe ip_masq_cuseeme
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_irc
/sbin/modprobe ip_masq_mfw
/sbin/modprobe ip_masq_portfw
/sbin/modprobe ip_masq_quake
/sbin/modprobe ip_masq_raudio
/sbin/modprobe ip_masq_user
/sbin/modprobe ip_masq_vdolive
echo "Loaded Masquerade Modules !"

maybe yo need just thes

echo "Running Masquerade [ANY]-ppp0->"
ipchains -A forward -i ppp0 -j MASQ
echo 1 > /proc/sys/net/ipv4/ip_forward

some firewall would also be nice ...

Zoran

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:22 EST