Eireann Kelly wrote:
> What file on a linux firewall allows ip address permissions, to allow
> you to connect remotely to a network? I need to update the ip
> addresses that my firewall currently lets in, i cant remember what
> file it is?
If you are running a recent Red Hat distribution, it is
/etc/sysconfig/iptables
You probably do not wish to make this table yourself. Use
/sbin/iptables (man iptables) to do it.
It will probably have entries like these:
IPT=/sbin/iptables
################################################## ###############
# Clear the existing firewall rules #
################################################## ###############
$IPT -P INPUT DROP # Set default policy to DROP
$IPT -P OUTPUT DROP # Set default policy to DROP
$IPT -P FORWARD DROP # Set default policy to DROP
$IPT -F # Flush all chains
$IPT -X # Delete all userchains
for table in filter nat mangle
do
$IPT -t $table -F # Delete the table's rules
$IPT -t $table -X # Delete the table's chains
$IPT -t $table -Z # Zero the table's counters
done
################################################## ###############
# Rules for built-in chains #
################################################## ###############
$IPT -A INPUT -i lo -j ACCEPT
$IPT -A INPUT -j BADIP
$IPT -A INPUT -j SHUN
$IPT -A INPUT -p ! icmp -j IN
$IPT -A INPUT -p icmp -j IN_ICMP
$IPT -A INPUT -j LDROP
$IPT -A OUTPUT -o lo -j ACCEPT
$IPT -A OUTPUT -j BADIP
$IPT -A OUTPUT -j SHUN
$IPT -A OUTPUT -p ! icmp -o $EXTDEV -s ! $EXTERNALIP -j LDROP
$IPT -A OUTPUT -p ! icmp -o $INTDEV -s ! $INTERNALIP -j LDROP
$IPT -A OUTPUT -p ! icmp -j OUT
$IPT -A OUTPUT -p icmp -j OUT_ICMP
$IPT -A OUTPUT -j LDROP
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ Registered Machine 73926.
/( )\ Shrewsbury, New Jersey
http://counter.li.org
^^-^^ 9:25pm up 22 days, 6:51, 2 users, load average: 2.09, 2.14, 2.16