Answer the question
In order to leave comments, you need to log in
How to add kernel options to iptables?
There are iptables parameters
*filter
###############
# VARIABLE DEFINITIONS
IPTABLES=/sbin/iptables
#Your DHCP Server for input of ICMP packets
DHCPSERVER=127.0.0.1
PUBIF=wlan0
# KERNEL PARAMETER CONFIGURATION
#
# DROP ICMP ECHO-REQUEST MESSAGES SENT TO BROADCAST OR MULTICAST ADDRESSES
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
#
....
....
COMMIT
Answer the question
In order to leave comments, you need to log in
the format does not imply any variables and echo. it's more like a script for you .... probably in the file somewhere further there will be "IPTABLES -A ..."
Add to the beginning of the file: !#/bin/bash
and give execution permissions to your script #chmod +x path_to_script
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question