/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! 
/* ALSO: Don't quote this header. It makes you look lame :-) */


Hello!

I' m running RedHat 6.2 (2.2.16 kernel) with 4 network cards in it, which
is supposed to be somehow of a router for my small network, and eventually
a firewall, if I'll be able to fix all the networking problems first.  I'm
running ip masquerading on one of those cards. And here is where my
problem begins. I seem to be loosing a connection between the router (the
linux box) and my hosts. It happens randomly, sometimes the connection
will stay up for almost 2 days, sometimes it will go down after a few
hours, there doesn't seem to be any consistency. 

At first I thought it had to be dhcp not configured right, however when I
assigned the addresses to the hosts, same thing happened again. At this
point I don't have any ideas of what could be causing the time outs, on
top of it there does not seem to be any other way to restore the
connections but by restarting the linux box (router).

There is one more thing. I'm also running samba 2.05 on a different linux
machine (RedHat 5.2), that all the hosts (with the private addresses that
are being assigned from the router) are logging on to. That seems to be
working ok, but maybe it would have something to do with it which I doubt,
but I thought the information might be useful, (samba doesn't go down in
any of these cases, when the connection is lost).

I think that's pretty much it, I'm going to include my little masq. script
at the end here. Any help would be greatly appreciated. Thanks a lot.

Swavek Hryniewicz
[EMAIL PROTECTED]

And here is the script:

#!/bin/sh
#
# /etc/rc.d/rc.firewall -Simple IP masq. setup.
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
#
# Load all required IP MASQ modules
#
/sbin/depmod -a
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_raudio
/sbin/modprobe ip_masq_irc
#
# Enable IP forwarding since it's disabled by default
#
echo "1" > /proc/sys/net/ipv4/ip_forward
#
# Enable samba from mars on masq. machines
#
ipchains -A forward -s 192.168.1.0/24 -d 216.0.255.144/28 137:139 -p tcp
-j ACCE
PT
ipchains -A forward -s 192.168.1.0/24 -d 216.0.255.144/28 137:139 -p udp
-j ACCE
PT        
#
# Enable ip forwarding and ip masq.
#
/sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ 

_______________________________________________
Masq maillist  -  [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ -- 
THIS INCLUDES UNSUBSCRIBING!
or email to [EMAIL PROTECTED]

PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.

Reply via email to