Hello

I have this rules in the /etc/rc.ipmasq


#!/bin/sh
#clear polices

ipfwadm -I -f
ipfwadm -I -p accept
ipfwadm -O -f
ipfwadm -O -p accept
ipfwadm -F -f
ipfwadm -F -p accept

#permit these machines

ipfwadm -F -f
ipfwadm -F -p deny

# net 157.100.0.0.
ipfwadm -F -a masquerade -P tcp -S 157.100.0.0/16 -D 0.0.0.0/0 110
ipfwadm -F -a masquerade -P tcp -S 157.100.0.0/16 -D 0.0.0.0/0 109
ipfwadm -F -a masquerade -P tcp -S 157.100.0.0/16 -D 0.0.0.0/0 25




Mathieu ARNOLD wrote:

> Lang Zhi wrote:
> >
> > Hi,
> > I want to setup a mail server and webserver that sit behind an ip-masq
> > firewall. How to use ipchains to do this ?
> > Let's say the mail server is 192.168.1.2 and the firewall eth1 192.168.1.254
> > and eth0 202.184.80.1
> >
> > How about the ipfwadm rules for this ?
>
> read the ip masq howto, it's in it.
>
> --
> Cordialement
> Mathieu Arnold                   PGP key id : 0x2D92519F
> IRC : _mat      ICQ 1827742      http://www.mat.cc/
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
begin:vcard 
n:Torres Tandazo;Rommel Vicente
tel;fax:59307 585978
tel;home:59307 574501
tel;work:59307 570275 Ext (639) (651)
x-mozilla-html:FALSE
url:http://www.utpl.edu.ec
org:Universidad T�cnica Particular de Loja;UPSI (Unidad de Proyectos y Sistemas Inform�ticos)
adr:;;San Cayetano Alto;Loja;Loja;11-01-608;Ecuador
version:2.1
email;internet:[EMAIL PROTECTED]
title:Redes y Telecomunicaciones
fn:Rommel V. Torres T.
end:vcard

Reply via email to