• 0 Votes
    1 Posts
    4k Views
    No one has replied
  • Asymmetric routing with a wireguard vpn

    6
    0 Votes
    6 Posts
    46 Views
    V

    @digitalgimpus
    So show all your firewall rules, please.

  • Multi wan - internal IP based policy.

    4
    0 Votes
    4 Posts
    73 Views
    N

    @Al2108 You need to solve the same gateway issue first.
    Some device in nat mode in between maybe?

  • Two default routes are getting installed

    2
    0 Votes
    2 Posts
    57 Views
    GertjanG

    @andydills said in Two default routes are getting installed:

    This is on 2.7.0, ....

    @andydills said in Two default routes are getting installed:

    We're thinking

    Stop thinking, the solution has arrived.
    'Years ago'.
    Upgrade first. Go to 2.7.2 - and even consider continuing upgrading to "Beta 2.8.0" as is very close to release.

    Then : reset your questions.
    Bye bye old issues.
    ( Welcome to the new issues - not that I, afaik, 'm aware of any =

  • DHCP client on second WAN gateway not getting IP assigned

    5
    0 Votes
    5 Posts
    72 Views
    F

    Okay, this is resolved. As suspected, it was related to the configuration of the VLAN for the OPT1 port.

    For anyone up against the same issue, the solution is:

    follow the instructions for configuring switch ports with VLANs https://docs.netgate.com/pfsense/en/latest/solutions/netgate-2100/configuring-the-switch-ports.html set your VLAN to have members "4" (assuming you are using the 4th LAN port as your OPT1 for WAN2), and "5" this is the critical part: for the VLAN members 4 and 5, you must make "4" untagged and "5" tagged -- see screenshot.

    I believe this is because traffic from the VLAN must go to the switch (member 5), but traffic on port 4 (member 4) cannot be tagged since your secondary internet provider is not set up to handle VLAN traffic. I could be wrong here, and welcome any better explanation for this solution.

    vlan - screenshot.png

  • Failover - how to configure the second interface?

    1
    0 Votes
    1 Posts
    44 Views
    No one has replied
  • Pacote Saindo Pelo GW Errado :: Packet Exiting Through Wrong Gateway

    1
    0 Votes
    1 Posts
    37 Views
    No one has replied
  • 1 Votes
    13 Posts
    224 Views
    desert_myrrhD

    @Gertjan said in WAN interface is UP / PPoE connection working / Can reach WANs Gateway / Cannot reach the internet:

    @desert_myrrh

    The concept of closing a thread doesn't exists here.
    If possible - I'm not sure, you can edit the first thread and adding the subject by adding something like [solved].

    edit : what is common here :
    Upvote the post of the person who brought you the solution.

    I need 5 reputation points to upvote. Just found there is a time to edit my last post. I'll wait and update later.

  • Cloudflare DNS with multiple WAN

    4
    0 Votes
    4 Posts
    108 Views
    C

    Oups the script was not complete :( Here an updated version :)

    #!/var/www/cloudflare/venv/bin/python3 # -*- coding: utf-8 -*- import requests import json import re import os # Cloudflare API settings API_TOKEN = 'my_api_token' ZONE_ID = 'my_zone_id' # TTL constant (120 = "Auto" on Cloudflare) AUTO = 120 # DNS records to update RECORDS_TO_UPDATE = [ {'name': 'domain.org', 'type': 'A', 'proxied': True, 'ttl': AUTO}, {'name': '*.domain.org', 'type': 'A', 'proxied': True, 'ttl': AUTO}, {'name': 'minecraft.domain.org', 'type': 'A', 'proxied': False, 'ttl': AUTO} ] # API headers HEADERS = { 'Authorization': f'Bearer {API_TOKEN}', 'Content-Type': 'application/json', } # File path to store last known IP LAST_IP_FILE = os.path.join(os.path.dirname(__file__), 'last_ip.txt') def get_public_ip(): """Fetch current public IP from checkip.dyndns.org""" try: response = requests.get("http://checkip.dyndns.org/") ip = re.search(r"Current IP Address: ([\d.]+)", response.text).group(1) return ip except Exception as e: raise RuntimeError(f"Failed to detect public IP: {e}") def load_last_ip(): """Read the last saved public IP address""" try: with open(LAST_IP_FILE, 'r') as f: return f.read().strip() except FileNotFoundError: return None def save_current_ip(ip): """Save the current public IP address""" with open(LAST_IP_FILE, 'w') as f: f.write(ip) def get_all_dns_records(): """Fetch all DNS records in the Cloudflare zone""" url = f'https://api.cloudflare.com/client/v4/zones/{ZONE_ID}/dns_records' response = requests.get(url, headers=HEADERS) if response.status_code != 200: raise RuntimeError(f"Failed to fetch DNS records: {response.text}") return response.json().get('result', []) def update_dns_record(record_id, name, record_type, proxied, ttl, new_ip): """Update a DNS record on Cloudflare""" url = f'https://api.cloudflare.com/client/v4/zones/{ZONE_ID}/dns_records/{record_id}' payload = { 'type': record_type, 'name': name, 'content': new_ip, 'ttl': ttl, 'proxied': proxied } response = requests.put(url, headers=HEADERS, data=json.dumps(payload)) if response.status_code == 200: print(f"✅ Updated {name} to {new_ip}") else: raise RuntimeError(f"Failed to update {name}: {response.text}") def main(): # Output HTTP header (for CGI) print('Content-Type: text/plain; charset=utf-8\n') try: current_ip = get_public_ip() last_ip = load_last_ip() print(f"🌍 Current Public IP: {current_ip}") if current_ip == last_ip: print("⏸️ Public IP has not changed. Skipping update.") return all_records = get_all_dns_records() record_id_map = {(rec['name'], rec['type']): rec['id'] for rec in all_records} all_success = True for record in RECORDS_TO_UPDATE: key = (record['name'], record['type']) record_id = record_id_map.get(key) if not record_id: print(f"⚠️ No record ID found for {record['name']} ({record['type']})") all_success = False continue try: update_dns_record(record_id, record['name'], record['type'], record['proxied'], record['ttl'], current_ip) except Exception as e: print(f"❌ Failed to update {record['name']}: {e}") all_success = False if all_success: save_current_ip(current_ip) print("✅ All records updated successfully. IP saved.") else: print("⚠️ Some updates failed. IP not saved to ensure retry next time.") except Exception as e: print(f"🚫 Script failed: {e}") if __name__ == '__main__': main()
  • 0 Votes
    3 Posts
    83 Views
    N

    @Gertjan thanks for that reply, I went ahead and just left the gateway monitoring IP field blank and it defaults to the ISP gateway but the problem keeps happening. I didn’t have this problem when I had the Starlink in passthrough mode connected to the OPT. Now with the T-Mobile gateway, I can’t put it into passthrough mode so could this be an issue because of that configuration? How can I change the pfSense settings to accommodate for the fact that the T-Mobile gateway can’t be passthrough?

  • 1:1 NAT through Tier-2 gateway

    6
    0 Votes
    6 Posts
    105 Views
    F

    @viragomann

    You are absolutely correct ... we had a reply-to issue.

    The issue was cause by there not being a default gateway set on the Tier-2 interface, so it wasn't spotted as a WAN interface, so reply-to wasn't enabled.

    Heaven only knows how long it had been that way, but now its set, everything works as advertised.

    Thanks again for your time and effort ... much appreciated.

    May the force be with you.

    ChIP.

  • Seeing a non-trivial amount of traffic on failover WAN

    1
    0 Votes
    1 Posts
    55 Views
    No one has replied
  • Trying to open ports to VM

    5
    0 Votes
    5 Posts
    137 Views
    S

    @tknospdr Where are you running ./discourse-setup, on something outside your network?

    Have you gone through https://docs.netgate.com/pfsense/en/latest/troubleshooting/nat-port-forwards.html ?

  • Gateway Failover and Failback Thresholds

    3
    0 Votes
    3 Posts
    105 Views
    P

    @viragomann
    Thank you, I was assuming this would be under Gateway Groups, time to do some reading now!

  • Clients behind WireGuard-connected travel router can't use personal VPNs

    1
    0 Votes
    1 Posts
    65 Views
    No one has replied
  • dpinger not reliable - ping request/replies

    9
    0 Votes
    9 Posts
    221 Views
    patient0P

    @siegmarb said in dpinger not reliable - ping request/replies:

    no, i did not set the id manually

    Ok, seeing the same on 2.7.2 (I'm on 25.03-BETA on prod), that's normal then.

  • Load balancing on an SG-2100 works but failover doesn't

    5
    0 Votes
    5 Posts
    127 Views
    A

    @SteveITS the issue of duplicate IP#s is one that I didn't see (or that didn't strike me as odd for some reason, but you would be right). I need to set this aside for a couple of days and maybe pick it up after I get some higher priority issues taken care of. Thx.

  • Cannot communicate off-LAN after upgrade to 24.03

    2
    0 Votes
    2 Posts
    126 Views
    K

    @kj32

    User error. I found some old notes that included this observation:

    "Lan gateway should be defined under System | Routing, not interface."

    Removed the spurious definition under interface, and now it works again.

  • Multi-Wan Comcast And Starlink - dpinger restarts every few minutes

    8
    0 Votes
    8 Posts
    302 Views
    S

    I am hoping this fairly ancient -5100 appliance holds on. It's been through a lot including several dead cable modems. However, physical intervention has to wait until my next in-person visit. I only have non-technical people on site (as indicated by the hard power off recovery).

    The site is in an area with buried cable and a high water table which is a recipe for disaster (eats a cable modem every 18 months) and explains the starlink back-up. We use tailscale so remote access is fairly tolerant of CGNAT and our windows DC / local users can phone home and network admin can remote in. When the comcast circuit is down I lose remote admin via the fqdn/public IP which is stressful as I'm reliant on tailscale coming up using starlink.

    As a first order trouble shooting step I'm stepping up a local VM as a tailscale client to give myself a back door if the netgate box becomes unreachable again and potentially to automatically attempt a pfsense reboot in the event of a sustained loss of connectivity.

    I will experiment with turning off gateway monitoring after that and watch for physical events. Next time I'm on site I'm going to insert a fiber media converter between the cable modem and the netgate (or it's successor if I can get the budget for it) to remove physical plug events from cable modem reboots and risk of electrical shocks on the wan port.

  • Configuring DMZ hosting for my new pfsense , on my home router

    21
    0 Votes
    21 Posts
    503 Views
    G

    @netblues And UPnP is also port forward.. just automagic. But as I said, never got it to work behind private IP using STUN. There is a feature request active to get a setting to allow UPnP to accept WAN with private IP though...

Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.