Date: Tue, 23 Dec 97 15:12:58 CST From: Chris Aubuchon <chrisa@commlet.com> To: questions@freebsd.org Subject: natd/libalias question Message-ID: <9712231512.aa08867@commlet.commlet.com>
next in thread | raw e-mail | index | archive | help
Greetings, Do the packet aliasing functions in libalias only work with private IP addresses? 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. I am setting up a firewall for our (as yet undelivered) internet line and my predecessors decided to make our interior network 126.0.0.0/24. I plan on changing this but for testing purposes of natd & ipfw I have left these alone. It appears that libalias is not doing what is says it should. I have natd started with -redirect_address 126.0.0.90 38.156.234.7 which according to the man pages for libalias & natd should allow outgoing requests from 126.0.0.90to appear as 38.156.234.7 and incoming requests for 38.156.234.7 to go to 126.0.0.90. Here is my network setup: 126.0.0.90 Internal machine 38.156.234.5 2.2.5-RELEASE with natd and ipfw running ed1 connected to 126.0.0.0/24 ed0 connected to 38.156.234.0/24 38.156.234.3 2.2.5-RELEASE I run natd like so on 38.156.234.5: natd -v -redirect_address 126.0.0.90 38.156.234.7 -n ed0 And I ping 38.156.234.3 from 126.0.0.90. Ping gets packets from 38.156.234.3 but when I look at the output from natd I see: Out [ICMP] 126.0.0.90 -> 38.156.234.3 aliased to 38.156.234.5 -> 38.156.234.3 In [ICMP] 38.156.234.3 -> 38.156.234.5 aliased to 38.156.234.3 -> 126.0.0.90 Now according to the manpages, the output above should have .5 replaced with .7 Any ideas? Chris Aubuchon chrisa@commlet.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <9712231512.aa08867>