|
|||||||||||
|
Doing nat only with <ONE> nic
From: David Rio <is04607(at)salleURL.edu>
Date: Thu Nov 21 2002 - 06:42:24 EST
A friend of mine has bought a new internet access. The ISP gave him a
"modem-bridge" that has one ethernet port. Clients has to use dhcp to get
ip addresses. This Ip addresses are public ones and only two computers can
be using the internet access at the same time. Dirty? sure.
My friend has four computers and wanted that all of them would have
internet access. I tell him: Hey!! Now it is time to get openbsd in your
live!!
nat on ne3 from 10.0.1.0/24 to any -> $PUBLIC_IP pass in all pass out all Well, with this setup it works like a charm. What is the problem? Problem is that $PUBLIC_IP can change and how I have alias over the ne3 interface I can't put this pf.conf line: nat on ne3 from 10.0.1.0/24 to any -> ne3 If I try to reload pf with this new setup I get this error:
marty:/tmp $ sudo pfctl -f /etc/pf.conf
/etc/pf.conf:17: translation address expands to multiple IPs of this
address family
Umm!! What a pity.
And one more thing: I would want to setup a dhcp server, will I find some problem having aliases on the NIC? Thanks in advance and apologize about my crappy english. P.S: What do you think about this scenario? I mean, would you use two NIC instead one? Why? Which problems do you see? Received on Thu Nov 21 06:43:44 2002 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:31:39 EDT |
||||||||||
|
|||||||||||