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

    Iptables import

    Scheduled Pinned Locked Moved Firewalling
    5 Posts 4 Posters 6.4k 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.
    • H Offline
      hot_rene
      last edited by

      hello,
      does anybody of you have any experience in importing iptables rules into pfsense?
      do you know a tool or maybe a script for converting the rules into xml format? i could imagine sth like downloading the config.xml, importing somehow the converted rules into the right <rule>tag and again uploading/restoring the whole pfsense system.
      I would appreciate any given hint.
      10x in advance</rule>

      1 Reply Last reply Reply Quote 0
      • C Offline
        cmb
        last edited by

        I haven't heard of such a thing being available.

        1 Reply Last reply Reply Quote 0
        • Cry HavokC Offline
          Cry Havok
          last edited by

          You're effectively looking for something to convert iptables to pf format.  I'm not aware (and Google doesn't show anything) of there being anything that can do that.

          1 Reply Last reply Reply Quote 0
          • H Offline
            hot_rene
            last edited by

            it is possible with php to convert the iptables rules into xml and direct insert into the config.xml/
            and again to upload the configurations. But one should write the code by itself.

            1 Reply Last reply Reply Quote 0
            • jahonixJ Offline
              jahonix
              last edited by

              From the time I first installed m0n0wall (and later on pfSense) I didn't have to look at 'firewall builder' anymore.
              But IIRC there was an option to read a configuration from an existing box and output it in a different format. Don't know if pf is supported, though.
              Take a look at:  http://www.fwbuilder.org/

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.