Jump to content

masquerading with iptables & freezing for bad clients


lefthook
 Share

Recommended Posts

Hi! Im working with a network like:

 

clients-------switch----eth1--linux--eth0--------internet

 

& rules for masquerading:

iptables -A POSTROUTING -t nat -s 192.168.200.0/24 -j MASQUERADE

iptables --append FORWARD --in-interface eth1 -j ACCEPT

echo 1 > /proc/sys/net/ipv4/ip_forward

 

if a bad configured client is connected to switch LM 9 starts to freeze?

How to protect? What it could be, double IPs?

 

For example: 192.168.200.65 and 11 work very well, but if I connect a machine 192.168.200.93 everything starts to freeze. I just & just can see with iptraf that it is the machine 93.

 

The router has P4 & 256MB.

Link to comment
Share on other sites

I know nothing about Iptable commands but I configured ICS on my server with the wizard in the MCC and it works #1. What about trying it? From the MCC go 'Network and internet' and clic 'Internet Connection Sharing'. It will install (probably already done) and configure a dhcp server, a firewall (shorewall) and the rules for ip masquerading. You should not have problems after that...

 

Btw, I have the same setup as you. 2 computers are connected to the switch and I can plug 3 mores if I want.

 

HTH

 

MOttS

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...