View Single Post
Old 15th August 2011
tomp's Avatar
tomp tomp is offline
Real Name: Tom Purvis
Local Area Nitwit
 
Join Date: Aug 2011
Location: Colorado
Posts: 17
Default Nics are now working!

Quote:
Originally Posted by jggimi View Post
The output of $ ifconfig may be of assistance; it should show physical connectivity, or the lack thereof.

And where are you pinging these addresses from? The OpenBSD platform, or externally? If the latter, routing may be an issue.
Looking at ifconfig got me thinking... I was trying to tell whether the nic at 192.168.1.249 was working by pinging it, with no response. Thinking about it and talking with my colleague here, I realized that my PC saw our DSL Modem/router as its default gateway. That gateway wasn't forwarding my ping packets to the 192.168.1 subnet. I switched my PC's static IP to 192.168.1.103 and my default gateway to 192.168.1.249 (the internal nic address) and voila! I can ping both nics. I ping 192.168.1.249 because it's my default gateway, and I can ping 192.168.0.254 (the other nic) because the box bridges to that address. Does that seem to make sense to you?

So now I know that both Nics are working. Big milestone!

I was hoping that I would be able to use the box to bridge to my internet gateway (our dsl modem/router), meaning that I could actually access the 'net through my OpenBSD box, serving as a bridge to the internet gateway, but it isn't working that way.

The router/gateway address is 192.168.0.1. I am assuming that getting this to work will imply having the right configuration info in mygate, myname, and hosts, correct? Here are the contents of those files now:

Code:
$ cat /etc/mygate
192.168.0.1
$ cat /etc/myname
tincup.rmt0.com
$ cat /etc/hosts
#       $OpenBSD: hosts,v 1.12 2009/03/10 00:42:13 deraadt Exp $
#
# Host Database
#
# RFC 1918 specifies that these networks are "internal".
# 10.0.0.0      10.255.255.255
# 172.16.0.0    172.31.255.255
# 192.168.0.0   192.168.255.255
#
127.0.0.1       localhost
::1             localhost
192.168.0.254   tincup.rmt0.com tincup
192.168.1.249   tincup0.rmt0.com tincup0
I am able to connect to ftp servers out on the 'net from my OpenBSD box, so I think that the mygate value has to be valid, at least for the internet connectivity of the OpenBSD box itself. But my PC can't get through using the OpenBSD box as it's gateway. Make sense?

Thanks a million for the help so far folks. I'm making progress. My ultimate goal is to get pf (Packet Filter) running, which will pass all the traffic from our internal network to the DSL Modem/Router, filtering by port of course. I assume that the configuration will need to be working to make the machine a simple bridge first though.

If you have a page that describes getting a pf-based firewall going once the nics are running properly, feel free to send me to that and I will get down to reading and experimenting. Or send me to a place where I can get data about basic net config. I've been reading man pages about myname, mygate, and hosts. Pretty clear, but as I follow them I don't seem to be getting the higher level stuff working.

Thanks again! Good Monday so far!
Reply With Quote