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

    Using an alias with ipfw command

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 3 Posters 1.8k 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.
    • X Offline
      XToni
      last edited by

      How ca I use an alias with ipfw ?

      I have something like this :

      ipfw 00002 add fwd 89.xx.xx.xx,port tcp from 89.xx.xx.0/24{22-29,57,59,91,127,131,141,149,204,205,208,248,43} to any dst-port 80 in via bge0 keep-state

      I would like instead of "89.xx.xx.0/24{22-29,57,59,91,127,131,141,149,204,205,208,248,43}" to use an existing alias from gui. Is this possible ?

      1 Reply Last reply Reply Quote 0
      • R Offline
        romizone
        last edited by

        Ehm quite complicated if you mix the rule like this …

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          1. You should only be making rules with the webGUI
          2. Do not mix firewall setups.  pf is the firewall used for 99% of everything, you absolutely can and will goof up things if you mix ipfw in.
          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.