OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • How to define a static route for a subnet? (wifi guest).
« previous next »
  • Print
Pages: [1]

Author Topic: How to define a static route for a subnet? (wifi guest).  (Read 2793 times)

GiantJack

  • Jr. Member
  • **
  • Posts: 58
  • Karma: 1
    • View Profile
How to define a static route for a subnet? (wifi guest).
« on: June 13, 2019, 07:11:25 pm »
Hi !

I try to make a guest wifi work with my opnsense router/firewall  and  dumb wifi AP with openwrt.

It followed this howto to setup the openwrt side:
http://steven-england.info/2014/11/01/openwrt-how-to-create-a-public-network-without-using-the-wan-interface/

My test network is like this:

phone 192.168.4.107-----wifi------[GUEST AP 192.168.4.1 / LAN 192.168.1.252]----ethernet-----[LAN 192.168.1.254 opensense WAN:]------- internet

According to opnsense firewall log live view, my phone is able to emit over the internet (mainly to DNS).
But the phone does not detect any internet connexion.
I tried to use the android "pingtools" app to send a ping to www.google.fr
it reports a DNS error.

I assume that maybe the answer from DNS is not delivered correctly to my phone.

In the howto, it was asked to define a static route in the router to make sure the router can find the 192.168.4.0 subnet.

I try to set this in opnsense, but I must say it ask more "questions" than simple soho routers.

I have tried to configure the route as per attached pictures: does it seems ok ?

























Logged
One day, I will understand all of this !

GiantJack

  • Jr. Member
  • **
  • Posts: 58
  • Karma: 1
    • View Profile
Re: How to define a static route for a subnet? (wifi guest).
« Reply #1 on: June 14, 2019, 10:06:59 pm »
I found on some other forum some mention about adding rules and/or outbound to make a static route work correctly...
But I don't understand correctly how this is working...anybody can help ?
Logged
One day, I will understand all of this !

GiantJack

  • Jr. Member
  • **
  • Posts: 58
  • Karma: 1
    • View Profile
Re: How to define a static route for a subnet? (wifi guest).
« Reply #2 on: June 17, 2019, 10:30:56 pm »
ok, so I think I found a solution:

in addition to the static route, I added a NAT outbound rules.

I set outbound to hybrid and added a rule as in attached pic

it seems to work, but if anything looks unsafe here, I would be happy to know ( I find it by try&error, but outbound is not that clear to me)
Logged
One day, I will understand all of this !

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • How to define a static route for a subnet? (wifi guest).
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2