Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th May 2014
martincho martincho is offline
New User
Join Date: May 2014
Posts: 1
Default LAN-WAN Bridge is not routing

Hi All

I'm trying to set up a bridge between 2 internal sub-nets.
One of them, is provided by a Lynksis router (connected to ISP modem). To this network are connected a PC (with OpenBSD) via LAN and mobiles and laptops via wifi.
The PC with Open BSD has 2 interfaces: vr0 which is connected to the Lynksis router via LAN, and a ath0 ( which is configured as hotspot (SSID: nobs) to provide connectivity to those laptops and mobiles that can't reach the wifi signal from Lynksis.

Unfortunately, the hosts that are connected to nobs (wifi subnet in the OpenBSD PC, couldn't go out to internet.

Don't know if it is a network definition o something else that must be configured.
Lynksis internal subnet is - vr0 in the bridge
OpenBSD AP subnet is - ath0 in the bridge

These are the configuration files:
Hostnames + bridge:
$ cat /etc/hostname.vr0
$ cat /etc/hostname.ath0
inet NONE media autoselect mediaopt hostap nwid nobs chan 1 wpakey "thesecretkey"
$ cat /etc/hostname.bridge0
add vr0
add ath0

pass quick on $int_if no state
pass quick on $wlan_if no state
$ cat /etc/rc.conf.local
pkg_scripts="dbus_daemon avahi_daemon mysqld"



$ cat /etc/dhcpd.conf
# $OpenBSD: dhcpd.conf,v 1.2 2008/10/03 11:41:21 sthen Exp $
# DHCP server options.
# See dhcpd.conf(5) and dhcpd(8) for more information.

# Network:
# Domain name: my.domain
# Name servers: and
# Default router:
# Addresses: -
option domain-name "my.domain";
option domain-name-servers,;

subnet netmask {
option routers;
Any help will be welcome.

Reply With Quote
  #2   (View Single Post)  
Old 16th May 2014
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
Join Date: May 2008
Location: USA
Posts: 7,851

Hello, and welcome!

Your bridge device is misconfigured, as you have separate subnets for each span. But it isn't needed. You can route your TCP/IP traffic, so the bridge is only getting in the way.

I recommend eliminating the bridge device, and forwarding packets (per FAQ 6.2.7) between these two networks. This will turn your OpenBSD device from a misconfigured bridge into a functioning router.

Last edited by jggimi; 16th May 2014 at 03:33 AM. Reason: typo
Reply With Quote
  #3   (View Single Post)  
Old 16th May 2014
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
Join Date: May 2008
Location: USA
Posts: 7,851

Your outer network (192.168.1.*) will need to know how to route to the inner network. You do that by adding the route to the inner network to the routing table of your Linksys router.
Reply With Quote

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BSD and the Ivy Bridge chipsets: H77; Z77; Q77 alikzus General Hardware 3 4th January 2013 04:36 AM
pf firewall, is it a bridge or router? tomp OpenBSD Security 8 17th August 2011 06:12 PM
bridge no such directory hehehehe OpenBSD General 1 15th December 2009 02:55 AM
Transparent bridge performance with PF northwoods FreeBSD General 3 30th January 2009 09:48 AM
Bridge VLAN + Catalyst espenfjo FreeBSD General 2 6th June 2008 05:16 PM

All times are GMT. The time now is 01:39 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick