|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
nat HELP
So, I have been running FreeBSD as my router for sometime now and like it a lot, ran into a problem recently however
I've managed to forward ports to PCs across my network without problem until I tried to forward some UDP for a game, it doesn't work. Code:
nat on $ext1 from !($ext1) -> ($ext1:0) rdr on $ext1 proto {tcp, udp} from any to any port {1234} -> $pc1 Code:
binat on $ext1 from $pc1 to any -> $ext1 Some people have suggested I get another IP from my ISP and binat 1 to pc1 and nat the second to the rest of my lan, this would be fine if my ISP allowed static IPs. I am actually allowed 2 IPs but they have to be obtained with DHCP and can only obtain one per interface so as far as I can tell... I would have to setup my network as layed out in the attached image. Seems a little crazy to me to change the network so much (1 new switch, 2 new nic in gateway) just to get a game working. I should also note the game worked fine when I forwarded port 1234 when I was using some $20 Linksys POS. Finally, I had the idea to create a virtual interface on the gateway and bridge it to my modem's interface, this might allow me to set the MAC sent to my ISP DHCP server thus it leasing me the second IP. No idea how to create virtual interfaces or bridge on FreeBSD though :P ( page that give me this idea http://ezine.daemonnews.org/200406/netgraph.html ) Thanks in advance to anyone that helps me figure this out!! |
|
|