FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
131 views 0 comments
by anonymous

Hi!

I have the rules in iptables, for example:

-A zone_sstp_src_REJECT -i sstp-+ -m comment --comment "!fw3" -j reject

-A zone_vpn_dest_ACCEPT -o tun_+ -m conntrack --ctstate INVALID -m comment --comment "!fw3: Prevent NAT leakage" -j DROP

-A zone_vpn_dest_ACCEPT -o tun_+ -m comment --comment "!fw3" -j ACCEPT

-A zone_vpn_dest_REJECT -o tun_+ -m comment --comment "!fw3" -j reject

What is the string "!fw3" in key "--comment"? Does it affect for anything?
Thanks! 

1 Answer

0 votes
by anonymous

Hello,

The --comment option does not have any affect on how the rule works and simply adds an explanatory string of up to 256 characters. 

The "!fw3" string simply refers to firewall3 (fw3) a netfilter/iptable rule builder application used withis OpenWRT/RutOS to parse a configuration file into a set of iptables rules, sending each to the kernel netfilter modules.

Best regards,