core icon indicating copy to clipboard operation
core copied to clipboard

incorrect WAN IP address on PPPOE

Open simonmcnair opened this issue 1 year ago • 5 comments

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

  • [yes ] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
  • [ yes] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue

Describe the bug

I have been troubleshooting wireguard all day, and finally turned the wireguard logging to information from warning. I got the following:

2024-10-18T13:00:42 Notice wireguard /usr/local/opnsense/scripts/Wireguard/wg-service-control.php: plugins_configure monitor (execute task : dpinger_configure_do(,[])) 2024-10-18T13:00:42 Notice wireguard /usr/local/opnsense/scripts/Wireguard/wg-service-control.php: plugins_configure monitor (,[]) 2024-10-18T13:00:42 Notice wireguard /usr/local/opnsense/scripts/Wireguard/wg-service-control.php: ROUTING: keeping inet default route to 84.65.192.1 2024-10-18T13:00:42 Notice wireguard /usr/local/opnsense/scripts/Wireguard/wg-service-control.php: ROUTING: configuring inet default gateway on wan 2024-10-18T13:00:42 Notice wireguard /usr/local/opnsense/scripts/Wireguard/wg-service-control.php: ROUTING: entering configure using opt5 2024-10-18T13:00:41 Notice wireguard wireguard instance OPNSenseHome (wg0) can not reconfigure without stopping it first. 2024-10-18T13:00:37 Notice wireguard wireguard instance OPNSenseHome (wg0) started

I wondered where 84.65.192.1 was coming from so ran curl ifconfig.me and got simon@laptop:~$ curl ifconfig.me 90.240.3.173

In the lobby it says: image

I think this is the first time it has been wrong, but it is wrong.

Tip: to validate your setup was working with the previous version, use opnsense-revert (https://docs.opnsense.org/manual/opnsense_tools.html#opnsense-revert)

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Describe alternatives you considered

A clear and concise description of any alternative solutions or workaround you considered.

Screenshots

If applicable, add screenshots to help explain your problem.

Relevant log files

If applicable, information from log files supporting your claim.

Additional context

Add any other context about the problem here.

Environment

Software version used and hardware type if relevant, e.g.:

OPNsense 23.7.8 (amd64). Intel® Xeon™ E3-1225V5 3.3Ghz Quad Core Network Intel® I210-AT

simonmcnair avatar Oct 18 '24 12:10 simonmcnair

2024-10-17T22:36:38	Informational	ppp	[wan] IFACE: Up event	
2024-10-17T22:36:38	Notice	ppp	ppp-linkup: executing on pppoe0 for inet	
2024-10-17T22:36:38	Informational	ppp	[wan] 90.240.3.173 -> 84.65.192.1	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: LayerUp	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: state change Ack-Sent --> Opened	
2024-10-17T22:36:38	Informational	ppp	[wan] IPADDR 90.240.3.173	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: rec'd Configure Ack #3 (Ack-Sent)	
2024-10-17T22:36:38	Informational	ppp	[wan] IPADDR 90.240.3.173	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: SendConfigReq #3	
2024-10-17T22:36:38	Informational	ppp	[wan] 90.240.3.173 is OK	
2024-10-17T22:36:38	Informational	ppp	[wan] IPADDR 90.240.3.173	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: rec'd Configure Nak #2 (Ack-Sent)	
2024-10-17T22:36:38	Informational	ppp	[wan] IPADDR 0.0.0.0	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: SendConfigReq #2	
2024-10-17T22:36:38	Informational	ppp	[wan] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: rec'd Configure Reject #1 (Ack-Sent)	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: state change Req-Sent --> Ack-Sent	
2024-10-17T22:36:38	Informational	ppp	[wan] IPADDR 84.65.192.1

simonmcnair avatar Oct 18 '24 12:10 simonmcnair

	
Severity
	
Process
	
Line
	
2024-10-17T22:36:38	Informational	ppp	[wan] IFACE: Rename interface ng0 to pppoe0	
2024-10-17T22:36:38	Informational	ppp	[wan] IFACE: Up event	
2024-10-17T22:36:38	Notice	ppp	ppp-linkup: executing on pppoe0 for inet	
2024-10-17T22:36:38	Informational	ppp	[wan] 90.240.3.173 -> 84.65.192.1	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: LayerUp	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: state change Ack-Sent --> Opened	
2024-10-17T22:36:38	Informational	ppp	[wan] IPADDR 90.240.3.173	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: rec'd Configure Ack #3 (Ack-Sent)	
2024-10-17T22:36:38	Informational	ppp	[wan] IPADDR 90.240.3.173	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: SendConfigReq #3	
2024-10-17T22:36:38	Informational	ppp	[wan] 90.240.3.173 is OK	
2024-10-17T22:36:38	Informational	ppp	[wan] IPADDR 90.240.3.173	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: rec'd Configure Nak #2 (Ack-Sent)	
2024-10-17T22:36:38	Informational	ppp	[wan] IPADDR 0.0.0.0	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: SendConfigReq #2	
2024-10-17T22:36:38	Informational	ppp	[wan] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: rec'd Configure Reject #1 (Ack-Sent)	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: state change Req-Sent --> Ack-Sent	
2024-10-17T22:36:38	Informational	ppp	[wan] IPADDR 84.65.192.1	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: SendConfigAck #193	
2024-10-17T22:36:38	Informational	ppp	[wan] 84.65.192.1 is OK	
2024-10-17T22:36:38	Informational	ppp	[wan] IPADDR 84.65.192.1	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: rec'd Configure Request #193 (Req-Sent)	
2024-10-17T22:36:38	Informational	ppp	[wan] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid	
2024-10-17T22:36:38	Informational	ppp	[wan] IPADDR 0.0.0.0	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: SendConfigReq #1	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: state change Starting --> Req-Sent	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: Up event	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: LayerStart	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: state change Initial --> Starting	
2024-10-17T22:36:38	Informational	ppp	[wan] IPCP: Open event	
2024-10-17T22:36:38	Informational	ppp	[wan] Bundle: Status update: up 1 link, total bandwidth 64000 bps	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] Link: Join bundle "wan"	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] Link: Matched action 'bundle "wan" ""'	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] LCP: authorization successful	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] MESG: CHAP authentication success	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] CHAP: rec'd SUCCESS #1 len: 31	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] CHAP: sending RESPONSE #1 len: 58	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] CHAP: Using authname "dsl00@redacted"	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] Name: "BSHN07-BNG-C1"	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] CHAP: rec'd CHALLENGE #1 len: 64	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] LCP: LayerUp	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] LCP: auth: peer wants CHAP, I want nothing	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] LCP: state change Ack-Sent --> Opened	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] MAGICNUM 0x4e79db79	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] MRU 1492	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] LCP: rec'd Configure Ack #2 (Ack-Sent)	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] MAGICNUM 0x4e79db79	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] MRU 1492	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] LCP: SendConfigReq #2	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] PROTOCOMP	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] LCP: rec'd Configure Reject #1 (Ack-Sent)	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] LCP: state change Req-Sent --> Ack-Sent	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] MAGICNUM 0x0d65c0ce	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] AUTHPROTO CHAP MD5	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] MRU 1492	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] LCP: SendConfigAck #183	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] MAGICNUM 0x0d65c0ce	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] AUTHPROTO CHAP MD5	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] MRU 1492	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] LCP: rec'd Configure Request #183 (Req-Sent)	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] MAGICNUM 0x4e79db79	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] MRU 1492	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] PROTOCOMP	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] LCP: SendConfigReq #1	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] LCP: state change Starting --> Req-Sent	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] LCP: Up event	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] Link: UP event	
2024-10-17T22:36:38	Informational	ppp	[wan_link0] PPPoE: connection successful	
2024-10-17T22:36:38	Informational	ppp	PPPoE: rec'd ACNAME "BSHN07-BNG-C1"	
2024-10-17T22:36:36	Informational	ppp	[wan_link0] PPPoE: Connecting to ''	
2024-10-17T22:36:36	Informational	ppp	[wan_link0] LCP: LayerStart	
2024-10-17T22:36:36	Informational	ppp	[wan_link0] LCP: state change Initial --> Starting	
2024-10-17T22:36:36	Informational	ppp	[wan_link0] LCP: Open event	
2024-10-17T22:36:36	Informational	ppp	[wan_link0] Link: OPEN event	
2024-10-17T22:36:36	Informational	ppp	[wan] Bundle: Interface ng0 created	
2024-10-17T22:36:36	Informational	ppp	web: web is not running	
2024-10-17T22:36:36	Informational	ppp	process 87669 started, version 5.9	
2024-10-17T22:36:36	Informational	ppp	 	
2024-10-17T22:36:36	Informational	ppp	Multi-link PPP daemon for FreeBSD```

simonmcnair avatar Oct 18 '24 12:10 simonmcnair

interestingly it seems to be correct when I ssh in to the machine:

WAN (pppoe0) -> v4/PPPoE: 90.240.3.173/32

simonmcnair avatar Oct 18 '24 12:10 simonmcnair

OPNsense 24.7.6-amd64
FreeBSD 14.1-RELEASE-p5
OpenSSL 3.0.15

simonmcnair avatar Oct 18 '24 12:10 simonmcnair

okay, WAN_GW is different to WAN, but I am unsure which wireguard should be set to and if it is correct.

simonmcnair avatar Oct 18 '24 12:10 simonmcnair

84.65.192.1 (WAN_GW) is the gateway of your internet connection i.e. the IP address of the router at your ISP (this is your ISP) 90.240.3.173 is the IP address your router (in this case OPNsense) has been assigned by your ISP (this is YOU)

If you want things to connect to you then they will use the 90.240.3.173 address

syserr0r avatar Nov 25 '24 12:11 syserr0r

This issue has been automatically timed-out (after 180 days of inactivity).

For more information about the policies for this repository, please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.

If someone wants to step up and work on this issue, just let us know, so we can reopen the issue and assign an owner to it.

OPNsense-bot avatar Apr 16 '25 11:04 OPNsense-bot