All of lore.kernel.org
 help / color / mirror / Atom feed
From: ToddAndMargo <ToddAndMargo@zoho.com>
To: netfilter@vger.kernel.org
Subject: bftables and scripts question
Date: Fri, 23 Dec 2022 18:30:02 -0800	[thread overview]
Message-ID: <b928e785-3108-088f-905f-3228e742b165@zoho.com> (raw)

Hi All,

I am currently using iptables but and starting the process
of learning nftables.

Question.  My iptables are in a bash programs (scripts).

For instance:

if [ "$enable_rdp" = "yes" ]; then
    # Warning: this user is given access to SYN's
    # rdp is M$ Terminal Services
    <lots of iptables>
    logger -p user.notice -t firewall "Firewall external rules warning: 
$ts_server (Terminal Server) accepts SYN's on Port $rdp_port"
fi

Will nftables work the same way?

And, will the converters also roll over the bash code?

Many thanks,
-T



-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

             reply	other threads:[~2022-12-24  2:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-24  2:30 ToddAndMargo [this message]
2022-12-24  3:40 ` bftables and scripts question Reindl Harald
2022-12-24  4:35   ` ToddAndMargo
2022-12-24 17:30     ` Reindl Harald

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b928e785-3108-088f-905f-3228e742b165@zoho.com \
    --to=toddandmargo@zoho.com \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.