What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

help with shell script iptables

accolito

Occasional Visitor
Hallo gentlemen.
I tried to make an iptable rule to block an ipset with my asusmerlin rtn66u:

iptables -I FORWARD 2 -m set --set MYRULESET src,dst -j DROP

That worked but what if I want to allow http and https on that specific set?
I tried to add another rule before that one but it won't work:

iptables -A FORWARD -m set --set MYRULESET src,dst -p tcp --dport 80 -j ACCEPT

Can someone help me?
Thanks in advance for your attention.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top