Rick wrote:
> How do I setup network address translation under RedHat? Currently I am
> using a Apache as a proxy for WWW trafic from my localnetwork to reach the
> Internet, however I'd like for my local machines to be able to reach the
> net through other services, such as, telnet ftp etc. I don't really want
> to use a proxy for this because I do not want to have to worry about
> modifying client software. If I understand network address translation
> correctly, if I have it setup properly under RedHat I'll be able to use
> stock software on Windows based systems and other Unix hosts to connect to
> the net through Linux.
make sure that your kernel has ip masquerading on (RH stock kernels do)
replace 192.168.121 with your chosen class C net...
this is supposed to be safe, and works for me:
from my /etc/rc.d/rc.local (and from the masquerading FAQ):
# My ip forwarding stuff
echo "ip masquerading 192.168.121.0/24"
/sbin/ipfwadm -F -p deny #this one is important
/sbin/ipfwadm -F -a m -S 192.168.121.0/24 -D 0.0.0.0/0
# End ip forwarding stuff
now Glynn Clements just wrote something about applying this to just ONE
interface...
as for other clients, it works transparently for me. If this is not the case
for you, you can try:
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_raudio
/sbin/modprobe ip_masq_irc
[or insmod]
M.K.
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]