• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Finding equivalent pf rule for iptables SIP REGISTER string

Scheduled Pinned Locked Moved Firewalling
2 Posts 2 Posters 176 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    simplyzero
    last edited by Feb 3, 2024, 11:24 PM

    I have a few Asterisk PBXs that I’m looking to secure behind a separate FreeBSD box with pf rules as the firewall. In iptables on the CentOS Asterisk PBX’s today I use a rule of “-A INPUT -p udp -m string -i eth0 --dport 5060 -j ACCEPT --string "REGISTER sip:[FQDN HERE]" --algo bm” to look for if you know the FQDN, you’re allowed.

    Is there an equivalent way to do this in pf?

    K 1 Reply Last reply Feb 4, 2024, 6:44 AM Reply Quote 0
    • K
      kprovost @simplyzero
      last edited by Feb 4, 2024, 6:44 AM

      @simplyzero No, there is not.

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received