5

Currently i'm working on some NAT traversal code (that allows to computers each behind it's own NAT to communicate with each other). But, surprisingly, i can't find any symmetric NAT's! (it's the most hard case). Anyone knows where can i find one, wither in software or hardware? It seems that windows 'internet connection sharing' is not symmetric :(.

2 Answers 2

4

As i know OpenBSD/FreeBSD pf nat is symmetric, it can be done using one line in /etc/pf.conf i.e.

nat on tl0 from 192.168.1.0/24 to any -> 24.5.0.5 

UPD: Of cause you can download OpenBSD/FreeBSD or pfSense and run it under some VM, i.e. VirtualBox as popular free one, just like Jimsmithkka suggested.

3
  • Is it any good guide how to configure simple test NAT on FreeBSD? I have installed FreeBSD 7.2-RELEASE on one of my computers, but adding your string to rc.conf will raise error "nat not found" :)
    – grigoryvp
    Aug 27, 2009 at 10:53
  • I have rebuilt kernel and sucesfully cnfigured NAT. Unfortunately, it's symmetric :(.
    – grigoryvp
    Aug 27, 2009 at 12:47
  • not rc.conf, but pf.conf, you also need kldload pf and pfctl -e for nat to start working. Also read FreeBSD hanbook about handling pf firewall Aug 27, 2009 at 14:47
1

i would suggest seeing if you can get your hands on a cisco virtual device (example/sample), i know their routers can support Symmetric Nat, so you could build one real quick and see if it works for you in VMs.

Also check VMwares site for other possible appliances that might do this for you.

1
  • 1
    You can also use something like Dynamips or GUI utility like GNS3 ( gns3.net ) to emulate cisco devices, using IOSes from ISOHunt.com, and connect virtual cisco network to the real one. Aug 25, 2009 at 21:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .