DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

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

Reply
 
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, 192.168.1.0 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 (192.168.2.1) 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 192.168.1.0 - vr0 in the bridge
OpenBSD AP subnet is 192.168.2.0 - ath0 in the bridge

These are the configuration files:
Hostnames + bridge:
Quote:
$ cat /etc/hostname.vr0
dhcp
$ cat /etc/hostname.ath0
inet 192.168.2.1 255.255.255.0 NONE media autoselect mediaopt hostap nwid nobs chan 1 wpakey "thesecretkey"
$ cat /etc/hostname.bridge0
add vr0
add ath0
up
PF:
Quote:
int_if="vr0"
wlan_if="ath0"

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

dhcpd_flags="ath0"

pf=""
pf_rules=/etc/pf.conf

$ 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: 192.168.1.0/255.255.255.0
# Domain name: my.domain
# Name servers: 192.168.1.3 and 192.168.1.5
# Default router: 192.168.1.1
# Addresses: 192.168.1.32 - 192.168.1.127
#
option domain-name "my.domain";
option domain-name-servers 192.168.1.3, 192.168.1.5;

subnet 192.168.2.0 netmask 255.255.255.0 {
option routers 192.168.2.1;
range 192.168.2.2 192.168.2.100;
}
Any help will be welcome.

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

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 offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

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
Reply

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 05:29 AM.


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