Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Set local static IP for wan interface using PPPoE
« previous
next »
Print
Pages: [
1
]
Author
Topic: Set local static IP for wan interface using PPPoE (Read 1768 times)
alb4rt
Newbie
Posts: 1
Karma: 0
Set local static IP for wan interface using PPPoE
«
on:
June 14, 2023, 01:59:39 am »
Hi,
Moving over from EdgeMAX to OPNsense.
My internet connection requires PPPoE to connect, but I also need to set a static local 192.168.2.0/24 static IP on the wan interface in order to be able to access my modem for statistic monitoring.
Is it possible to do this?
Thanks for any help
Logged
zan
Full Member
Posts: 175
Karma: 31
Re: Set local static IP for wan interface using PPPoE
«
Reply #1 on:
June 14, 2023, 06:55:45 am »
Yes, you can use IP Alias.
Interfaces->Virtual IPs.
Edit: I don't have PPPOE connection right now but I recall we can't access the modem through PPPOE interface because it is just a virtual interface. You need to assign the physical port of your PPPOE to a new interface and set your static IP there (and NAT it if I remember correctly).
«
Last Edit: June 14, 2023, 08:04:32 am by zan
»
Logged
franco
Administrator
Hero Member
Posts: 17392
Karma: 1579
Re: Set local static IP for wan interface using PPPoE
«
Reply #2 on:
June 14, 2023, 09:56:20 am »
VIPs should work without an issue.
Cheers,
Franco
Logged
chemlud
Hero Member
Posts: 2451
Karma: 112
Re: Set local static IP for wan interface using PPPoE
«
Reply #3 on:
June 14, 2023, 10:56:31 am »
I just had a look at my config.xml:
I don't assign an IP to WAN, but there is an outbound NAT rule on WAN allowing a specific IP in LAN to accesses the modems IP/32. And that works...
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare
A router is not a switch - A router is not a switch - A router is not a switch - A rou....
RamSense
Hero Member
Posts: 560
Karma: 10
Re: Set local static IP for wan interface using PPPoE
«
Reply #4 on:
June 14, 2023, 11:44:01 am »
@chemlud
Interesting, i have also done this with a virtual ip, but am curious about your solution.
Can you share a screen capture of your nat rule on wan for me to learn and i can test it at my network? thnx!
Logged
chemlud
Hero Member
Posts: 2451
Karma: 112
Re: Set local static IP for wan interface using PPPoE
«
Reply #5 on:
June 14, 2023, 02:31:00 pm »
Have a look, I configured it a few years ago. Works here. The WAN is DHCP. No special interface, as for the dark side of the sense universe. No rules on WAN or LAN besides HTTP any any for the client on LAN (the modem only speaks http)...
Fun fact: "Block private networks" is ticked on WAN... :-D
«
Last Edit: June 14, 2023, 02:32:49 pm by chemlud
»
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare
A router is not a switch - A router is not a switch - A router is not a switch - A rou....
RamSense
Hero Member
Posts: 560
Karma: 10
Re: Set local static IP for wan interface using PPPoE
«
Reply #6 on:
June 14, 2023, 04:54:38 pm »
thank for sharing! Something to test in the weekend :-)
Logged
Gianry
Newbie
Posts: 3
Karma: 0
Re: Set local static IP for wan interface using PPPoE
«
Reply #7 on:
September 20, 2024, 10:38:49 pm »
Hi,
I've the same necessity. My LAN has 192.168.1.0/24 and my opnsense router has 192.168.1.2/32 address.
I need to reach the ONT fiber device connected to WAN port with PPPoE . Its net address is 192.168.1.1.
I tried to use Virtual IP on wan interface but I'm notable to reach the OntFiber .
Logged
dseven
Full Member
Posts: 113
Karma: 15
Re: Set local static IP for wan interface using PPPoE
«
Reply #8 on:
Today
at 11:49:12 am »
I can't see a VIP on the WAN interface working for this - the WAN interface is one end of a PPP tunnel. The other end od the PPP tunnel is not on the ONT - it's on some ISP-owned hardware in some location beyond the other end of the fibre. I would expect the ONT to be invisible from the PPP layer.
Assigning the underlying physical NIC and giving it a 192.168.x.x address seems like it should work (see @zan's editted response), but I don't have an easy way to test it. You would have to NAT it if you want to access the ONT from hosts on your LAN, unless there's a way to add static routes to the ONT (pointing back to you LAN through OPNsense).
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Set local static IP for wan interface using PPPoE