Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - sesquipedality

#31
I have a router that is accessible as router.domain.org and router.subdomain.domain.org.  I am using dehydrated to generate an SSL certificate valid for both of these domains, which is then installed on opnsense using a script called opnsense-import-certificate.php that I found on this forum.

This certificate shows as valid for both domains.  I have "alternate hostnames" under "Systems -> Settings -> Administration" configured as "router.domain.org router.subdomain.domain.org" in the GUI.  SSL is enabled also.

Unfortunately, "router.subdomain.domain.org" is still always throwing a DNS rebind attack warning.   I'm loathe to turn DNS rebind attack warnings off, but I would like to be able to access from both domains.  Does anyone have any idea how to fix this?  Thanks.
#32
I have set up my Opnsense 20.1.7-AMD64 router (running on a Dell R220 in a vm under qemu) with multiple WAN connections.  I have an IP modem on vtnet2 connected to Virgin Media UK using DHCP and an VDSL2 modem on vtnet1 connected to Vodafone UK (because Vodafone unhelpfully don't let you run their supplied router in modem mode).   I used the guide at https://docs.opnsense.org/manual/how-tos/multiwan.html to set these two links up in fallover mode with the Voda connection being used when the Virgin one falls over (since the Virgin one is twice the speed).   

Both gateways are assigned to WAN_GROUP, and the default rule for LAN (on vtnet0) is configured to route via this as a gateway.  All the firewall NAT holes on the router point to the Virgin link - my dynamic DNS provider (Mythic Beasts) doesn't offer an easy way to assign multiple IPs to a single hostname - the previous A record will simply be overwritten, which is of course the behaviour one usually wants, so it makes sense to keep all the external services on a single WAN interface, although it would be nice if there were a way to fallover these too.

Anyway, if I set the Virgin link to Priority 1 in the gateway group and Vodafone to 2, everything works like a dream.  The local internet transparently flips back and forth if I disconnect Virgin, so I have redundancy and can carry on working in the event of an ISP outage so long as both Virgin and Vodafone aren't down.

Ideally though, I'd like to aggregate the links.   I previously had this working in a test configuration using Wingate with a direct connection of the Virgin link to my PC.   This would show download speeds of 150Mbit/s and upload of 20Mbit/s on speedtest.

If I set both routers to priority 1 on OPNSense, however, things just get weird.  Some sites become unreachable, or have massively long timeouts - Speedtest will only ever use one WAN connection at a time, regardless of whether or not "bind states to interface" is set in firewall rules. 

Link speeds at 110Mbit/s for Virgin, 50-55Mbit/s Vodafone.  Trigger level is set to "Member Down".    Weight is set to 2 for Virgin, 1 for Vodafone.

I'm genuinely not sure where to start in diagnosing the issues I am seeing, and some pointers as to what to start looking at would be much appreciated.

#33
20.1 Legacy Series / Re: Problems setting up PPPoE
June 07, 2020, 05:26:34 PM
Just to note that it is safe to turn the "block bogon networks" back on, but it will not work unless "block local networks" is set to "off" (in my configuration at least).
#34
20.1 Legacy Series / Re: Problems setting up PPPoE
June 07, 2020, 05:10:25 PM
Thank you.   We had already tried it with and without the VLAN configuration in place, but it looks like a previous config error had stopped them both from working.  We are now up and running.
#35
20.1 Legacy Series / Re: Problems setting up PPPoE
June 07, 2020, 04:39:05 PM
#36
20.1 Legacy Series / Re: Problems setting up PPPoE
June 07, 2020, 04:38:41 PM
#37
20.1 Legacy Series / Re: Problems setting up PPPoE
June 07, 2020, 04:38:09 PM
#38
20.1 Legacy Series / Re: Problems setting up PPPoE
June 07, 2020, 04:37:06 PM
Thanks.  Images attached below.

#39
20.1 Legacy Series / Problems setting up PPPoE
June 07, 2020, 03:07:58 PM
Hi,

I simply can't get PPPoE to work on OPNsense 20.1.7-amd64 with an EchoLife HG612 (patched) mpdem connecting to Vodafone UK.  I have configured the link, and can see from the modem's admin interface that there is a physical connection.   OpnSense simply will not connect though.  The logs show the following:


2020-06-07T14:02:04 ppp: [opt3_link0] Link: reconnection attempt 99 in 2 seconds
2020-06-07T14:02:04 ppp: [opt3_link0] LCP: Down event
2020-06-07T14:02:04 ppp: [opt3_link0] Link: DOWN event
2020-06-07T14:02:04 ppp: [opt3_link0] PPPoE connection timeout after 9 seconds
2020-06-07T14:01:55 ppp: [opt3_link0] PPPoE: Connecting to ''
2020-06-07T14:01:55 ppp: [opt3_link0] Link: reconnection attempt 98


The "connecting to" line in particular suggests some sort of misconfiguration, but I have followed guides from people who apparently have the same sort of connection working wihtout difficulty.  Can anyone suggest where I should be looking?  Thanks.
#40
I have an opnsense router on 192.168.10.1 and several NAT rules set up similar to the following

Interface: WAN
Destination: WAN IP
Port: 2222
Target: 192.168.10.100
Target Port: 2222

When I try to connect to port 2222 on the router from inside the network (i.e from 192.168.10.50 to 192.168.10.1), then the request is redirected to the NAT machine 192.168.10.100

Port reflection and automatic outbound NAT for reflection is enabled.   Turning these off stops this behaviour.

This is not desired behaviour.  Is it an inevitable consequence of port refection.  If so I will just put all of my external names in the unbound overrides and turn off reflection, as this will largely achieve what I want, but for testing and consistency purposes I would prefer that DNS resolve to the same values inside and outside of the LAN.
#41
Mapping the public server name to the local IP in the DNS overrides in

Services -> Unbound DNS -> Overrides

Solved the problem, but of course now all machines on the internal network resolve the public server name to the local IP for all purposes, which may be a little more of a reconfiguration than I ideally wanted.  I'd still be interested in knowing whether this is doable using NAT and mirroring if anyone knows how.
#42
Thanks.  I'd thought that might be the case, but I'm having difficulty in figuring out where in the interface I should set that up.  Certainly my attempts so far haven't been successful.
#43
So I have a NATed LAN behind an opnsense firewall.  Port forwarding (with reflection) is in place for my nextcloud server on TCP port 8443.  All works well in that I can access the sever using https://www.internet.name.com:8443/ from both inside and outside of the network.

However, the config file backup option in opnsense does not work in that opnsense times out trying to contact the server.  This does not happen when the internal name of the server is used, but for security reasons, nextcloud will not serve files as the server's SSL certificate only covers its public facing name.  If I want to back up my config from the opnsense router to the internal server, it therefore has to be done via using the public host name and NAT reflection.

NAT reflection does not appear to be working from the router itself.  I force an update from the user interface, but the page waits for a long term before returning with an error. The firewall logs are unhelpful, and do not show any block rules being matched or any traffic being allowed from the router.  tcpdump confirms no traffic to or from port 8443 (the port I am using) on either the LAN or WAN interfaces related to the request to back up the config file.

The error from the logs is:

2020-04-19T15:47:53   config[43811]: {"url":"https:\/\/<server_url>\/","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":60.030287,"namelookup_time":0.022502,"connect_time":0,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"","certinfo":[],"primary_port":0,"local_ip":"","local_port":0}
2020-04-19T15:47:53   config[43811]: Error while fetching filelist from Nextcloud

(DNS on the router is resolving the public host name.)

Does anyone have any suggestions as to what is going on, and how I might fix it?  Thanks.
#44
I am having a bit of a tricky configuration issue that I hope someone here might be able to shed some light on

Network topology is as follows


Public                        NATed
IP v4                         IP v4 (192.168.11.x)
WAN <-> opnsrouter <-> sshhost
                               <-> cliient
                                NATed
                                IP v4 VLAN (192.168.22.x)
                                <-> vlanhost


(I don't think the VLAN is relevant but I include it for completeness - it's using tagged 802.11Q on opnsrouter.  Firewall rules stop it sending traffic to local machines or opnsrouter.)

Automatic outbound NAT for reflection and reflection for port forwards are enabled

I set up a rule to port ssh to sshhost as follows


Interface: WAN
Destination: WAN IP
Destination port range: SSH
Redirect target IP: sshhost (via a firewall alias containing sshhost's IP)
Redirect target port: SSH
NAT reflection: enable

All other options are left at default

With this rule set up ssh to opnsrouter's public name works from both inside and outside the router, as expected.  However, if I try to ssh to opnsrouter itself from inside the network, the connection also gets forwarded to sshhost rather than being picked up by opnsrouter as I would like.

What am I doing wrong?  Is there a way to fix this?  Thanks.