Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 10-06-2004, 09:47 PM   #1
Registered: Apr 2004
Distribution: Slackware 10, Open BSD 3.6, Mac OS 10.3.7, Splack 10 beta
Posts: 393

Rep: Reputation: 30
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.
Old 10-06-2004, 11:47 PM   #2
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
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.

$ man hostname.if
Old 10-14-2004, 07:20 PM   #3
Registered: Apr 2004
Distribution: Slackware 10, Open BSD 3.6, Mac OS 10.3.7, Splack 10 beta
Posts: 393

Original Poster
Rep: Reputation: 30
i just ordered a book off ebay that has everything...and i think i might just go with a bridge. Thanks for helping me.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building an OpenBSD 3.6 firewall/router... Erik Thorsson *BSD 6 02-11-2005 03:27 PM
OpenBSD as a router on old pc? Cron *BSD 3 10-19-2004 07:19 AM
OpenBSD routing problems c_rugby *BSD 7 06-23-2004 03:38 PM
OpenBSD and Alpha Problems!!! lil_drummaboy *BSD 4 05-03-2004 07:13 PM
OpenBSD-3.3/enlightenment-0.16.5 menu problems Zal_Patera Linux - Software 1 08-26-2003 01:50 AM > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 02:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration