Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Nov 2001 00:12:35 +0100
From:      Tibor Gres <egresh@noc.nextra.sk>
To:        Matiss Elsbergs <matiss@bkc.lv>
Cc:        freebsd-security@freebsd.org
Subject:   Re: IP Masquerade
Message-ID:  <3BF991E3.5483C14F@noc.nextra.sk>
References:  <3BF65250.6E0B8F2E@softnet.ro> <001701c16f8e$4b02d300$0300a8c0@weird>

next in thread | previous in thread | raw e-mail | index | archive | help
/etc/rc.conf:
..
natd_enable="YES"
natd_interface="fxp0" #what interface you have..
natd_flags="-s -u"
#-use_sockets | -s
#                 Allocate a socket(2) in order to establish an FTP data
or IRC
#                 DCC send connection.  This option uses more system
resources,
#                 but guarantees successful connections when port
numbers con-
#                 flict.
#-unregistered_only | -u
#                 Only alter outgoing packets with an unregistered
source
#                 address.  According to RFC 1918, unregistered source
#                 addresses are 10.0.0.0/8, 172.16.0.0/12 and
192.168.0.0/16.
firewall_script="/etc/rc.fw"
..

/etc/rc.fw:
..
add 200 divert natd ip from any to any via fxp0
..

man ipfw
man natd

Matiss Elsbergs wrote:
> 
> man natd
> ----- Original Message -----
> From: "Florin MANAILA" <florin.manaila@softnet.ro>
> To: "FreeBSD" <freebsd-security@FreeBSD.ORG>
> Sent: Saturday, November 17, 2001 2:04 PM
> Subject: IP Masquerade
> 
> > Hi all,
> > how do I make IP Masquerade on a FreeBSD whit ipfw for
> > 192.168.1.0/24 to be able to communicate with the global
> > Internet ?
> >
> >
> > Best regards,
> > Florin
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-security" in the body of the message
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-security" in the body of the message

-- 
Tibor Gres
e-mail: egresh@noc.nextra.sk

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BF991E3.5483C14F>