LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
LinkBack Search this Thread
Old 10-06-2004, 09:47 PM   #1
zaicheke
Member
 
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
chort
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
zaicheke
Member
 
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.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 02:47 AM.

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