Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
How to get internet access when connecting opnsense router to existing router?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to get internet access when connecting opnsense router to existing router? (Read 5879 times)
P195
Newbie
Posts: 36
Karma: 0
OPNsense beginner for home network
How to get internet access when connecting opnsense router to existing router?
«
on:
December 03, 2023, 11:34:50 pm »
Hi All,
I'm trying to connect my OPNsense router to my existing ISP router so I can use my local PC to learn and configure OPNsense while still allowing the rest of my family to use the wireless functionality of the ISP router.
I've connected one of the LAN ports of the the ISP router to the WAN port of the OPNsense router and am able to access the GUI on 192.168.1.1.
When I was using the ISP router in bridge mode before, I had to use PPPoE for the WAN and input my broadband credentials which enabled internet access. When trying to configure this as a router behind a router (which isn't in bridge mode), should I be using DHCP, PPPoE or static IP for the WAN?
Should my network card in my PC be set to obtain IP automatically or do I need to specify a specific IP/subnet mask/gateway ?
Is there anything that I would need to change (or information I would need to know) in the GUI for the ISP router?
I've spent all day today trying to get internet access but to no avail. I'd be very grateful for any advice on what I need to do to get internet access to work when using OPNsense behind my ISP router when not bridged.
Thanks
P195
Logged
Patrick M. Hausen
Hero Member
Posts: 6802
Karma: 571
Re: How to get internet access when connecting opnsense router to existing router?
«
Reply #1 on:
December 04, 2023, 08:44:53 am »
Interfaces > WAN > Block private networks.
Uncheck that feature.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
P195
Newbie
Posts: 36
Karma: 0
OPNsense beginner for home network
Re: How to get internet access when connecting opnsense router to existing router?
«
Reply #2 on:
December 04, 2023, 11:50:29 am »
Thank you for your response.
I have already unchecked "block private networks" and "block bogon networks" under Interfaces > WAN.
I followed this guide
https://homenetworkguy.com/how-to/use-opnsense-router-behind-another-router/
(but not the optional bits at the bottom) but I still wasn't able to get internet access.
I wondered if it was because I needed to do something either in the ISP router config GUI, or on the PC network card TCP/IPv4 setup? Also I'm unsure if I should I be using DHCP, Static IPv4 or PPPoE for the WAN interface?
My ISP router is reached on 192.168.1.254. My OPNsense router is currently setup as IP 192.168.1.1.
Do I need to change the subnet of the LAN interface so it is not 192.168.1.XXX? Should I set it as something like 10.0.0.1 ?
Many Thanks!
«
Last Edit: December 04, 2023, 12:00:38 pm by P195
»
Logged
Patrick M. Hausen
Hero Member
Posts: 6802
Karma: 571
Re: How to get internet access when connecting opnsense router to existing router?
«
Reply #3 on:
December 04, 2023, 11:59:52 am »
Default OPNsense installation, WAN connected to old router, LAN connected to PC - Internet should "just work".
Assuming:
- block private networks is disabled
- the old router does NOT use the network 192.168.1.0/24
If the second point is indeed the case you need to reconfigure the OPNsense LAN address and the DHCP server settings. But that should be all - no other tweaks necessary.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
P195
Newbie
Posts: 36
Karma: 0
OPNsense beginner for home network
Re: How to get internet access when connecting opnsense router to existing router?
«
Reply #4 on:
December 04, 2023, 12:11:10 pm »
Thanks.
So to clarify,
I need to setup the WAN interface to use DHCP, not static IPv4 as described in the linked guide?
I need to change the LAN address to something other than 192.168.1.XXX? something like 172.X.X.X or 10.X.X.X?
When you say reconfigure the DHCP server settings what do you mean? Like the IP range?
Sorry for the noobie questions!
Logged
Patrick M. Hausen
Hero Member
Posts: 6802
Karma: 571
Re: How to get internet access when connecting opnsense router to existing router?
«
Reply #5 on:
December 04, 2023, 12:49:19 pm »
1. A newly installed OPNsense uses DHCP for WAN. Just plug in.
2. Yes, you would need to change LAN to e.g. 192.168.2.1/24. Then give your PC a static address in thst network and adjust Services > DHCPv4 > LAN to match that network.
Then switch your PC back to DHCP again.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
P195
Newbie
Posts: 36
Karma: 0
OPNsense beginner for home network
Re: How to get internet access when connecting opnsense router to existing router?
«
Reply #6 on:
December 04, 2023, 01:06:25 pm »
I appreciate your support. I'll have another go at it tonight armed with this information.
Cheers
Update: it worked
«
Last Edit: December 05, 2023, 12:20:27 am by P195
»
Logged
cliffwilliams44
Newbie
Posts: 12
Karma: 1
Re: How to get internet access when connecting opnsense router to existing router?
«
Reply #7 on:
December 06, 2023, 12:43:13 am »
Quote from: Patrick M. Hausen on December 04, 2023, 08:44:53 am
Interfaces > WAN > Block private networks.
Uncheck that feature.
Yeah, I struggled with this for a whole day.
It would be nice if when you configure the wan interface it would detect it has a private IP and warns you to uncheck this option or prompt you to turn it off.
It would save newbies like me some headaches.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
How to get internet access when connecting opnsense router to existing router?