NATD, interface with two IPs.

William Fletcher ultraviolet at epweb.co.za
Fri Sep 19 05:39:29 PDT 2003


Hi,

I have a slight problem with natd. I have the following interface. 

ed2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 196.14.166.30 netmask 0xffffffe0 broadcast 196.14.166.31
        inet6 fe80::200:21ff:fe20:f11%ed2 prefixlen 64 scopeid 0x2
        inet 192.168.2.30 netmask 0xffffff00 broadcast 192.168.2.255
        ether 00:00:21:20:0f:11

Take note of the network masks.
I can only talk to computer 192.168.2.1-30 when natd is running.

I'm using natd to do the translation... With the following ipfw rule.

ipfw -q -f add divert natd all from any to any via ed2

I can ping across to 192.168.2.30+ but I cannot send tcp\udp, etc.

Anyone got any ideas, or, should I just go for ipnat? 

-- 
William Fletcher (ultraviolet)		      Powered by http://www.FreeBSD.org/
IT Administrator, EPWeb networks.	                  irc at irc.epweb.co.za
http://www.epweb.co.za/				       http://vision.za.net/irc/
Tel: +27 (041) 395 6800					          
Fax: +27 (041) 395 6818	
Support: support at epweb.co.za

 "To see what is in front of one's nose needs a constant struggle.." 
                                                          - George Orwell

I'm not vain; It's hard being modest when you're so perfect! 

This email and the content are subject to a disclaimer at the following link:
http://www.epweb.co.za/corp/disclaimer.htm

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030919/c769b7f4/attachment.bin


More information about the freebsd-questions mailing list