All of lore.kernel.org
 help / color / mirror / Atom feed
* How to direct packets to my server. DOES THIS LOOK RIGHT?
@ 2002-12-15  5:33 Joel Linuxdude
  2002-12-15  6:51 ` Rob Sterenborg
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joel Linuxdude @ 2002-12-15  5:33 UTC (permalink / raw)
  To: netfilter

My Netfilter firewall (unfortunately) is running also
my Apache web server, FTP server and Telnet daemon.
I honestly think this is ok but its confusing me with
the whole firewall aspect.

I wanted to allow new packets to go to my Linux box
such as port 21 and 80 but only about 4 new connections
per second.

Eth0 = <Internet IP from my ISP/cable modem company>
Eth1 = 192.168.0.1

Would I do it like this;

/sbin/iptables -A PREROUTING -i eth0 -p tcp -d x.x.x.x --dport 21 -m state 
--state NEW -m limit --limit 4/second -j DNAT --to x.x.x.x

Whereas x.x.x.x is my IP that my ISP assigns me. Or would I use
the following;

/sbin/iptables -A PREROUTING -i eth0 -p tcp -d x.x.x.x --dport 21 -m state 
--state NEW -m limit --limit 4/second -j DNAT --to 192.168.0.1

THANKS!!!

Joel




_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-12-15 15:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-15  5:33 How to direct packets to my server. DOES THIS LOOK RIGHT? Joel Linuxdude
2002-12-15  6:51 ` Rob Sterenborg
2002-12-15 11:42 ` Roy Sigurd Karlsbakk
2002-12-15 15:08 ` Zoilo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.