*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 10, Open BSD 3.6, Mac OS 10.3.7, Splack 10 beta
Posts: 393
Rep:
More OpenBSD router problems.
I'm trying to set a gateway on a different subnet. I have a netgear router that goes to my OpenBSD box which has two NICs. I just reinstalled OpenBSD for a fresh attemp at a router. All i did was uncomment the nat stuff in pf.conf (and i replaced the $ext_if with rl0 and $int_if with rl1) and I turned in ip forwarding. I think i need a entry for the second subnet NIC, what exactly would that look like. At the moment the only thing the router will go to is a iMac running OSX. Could someone walk me through this.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
The NIC that's plugged into the Netgear has to have an IP on the same subnet as what the Netgear assigns. The second NIC must have an IP on a subnet that does not overlap the one assigned by the Netgear. You can let the IP of the interface connected to the Netgear be assigned by DHCP, but the IP of the other interface will need to be statically assign so that the hosts connected behind it know what IP to use for their gateway.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.