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

Hi !

I've been following the list discussion silently for a while now, but
have finally got to install my ipmasqbox. I use the "simple rc.firewall
0.63" on a redhat 7.2 with the 2.4-10 kernel.

It works very well I must say, I'm impressed myself. :) 

I have a static IP on the external interface and a static one on the
internal interface. Then I use dhcp to give private adresses to all
machines on the internal network.
Everyone can do pretty much what they want and so on.

Now to my question. For the moment I have some servers at the same level
as the firewall, that is, with a static ip directly connected to the
net. My intention is to put theese behind the firewall, and redirect the
corresponding ports to each machine on the network.
I got this working fine with a webserver by adding the following
commands to the firewall script.

$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -p tcp --dport 80 -m state
--state NEW,ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A PREROUTING -t nat -p tcp -d $EXTIP --dport 80 -j DNAT --to
$WEBSERVER:80

Can this also be done with a mailserver, which would need forwarding of
smtp, pop3 and imap? I use qmail on the mailserver if that have any
impact. The problem is that my network-knowledge about the mailserver is
a bit limited. 

So have anyone put a mailserver behind the firewall before? And can I
maybe get some example.


Thanks in advance,
        Eric


-- 
[ eric persson | [EMAIL PROTECTED] | www.persson.tm ]
_______________________________________________
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