Skip to contentSkip to conversation

trying to tweek FW and / or ruleset

DISCUSSION Brent Clark 3 participants 3 messages Feb 13, 2005 – Feb 15, 2005

lore
Share & tools
lore
#0 lore raw

Hi all

I have a relatively small LAN.

I have been going through my ruleset (trying to tweak things)

Copied and pasted below are a few things I have been playing with.

If possible, would anyone over look this and see there is anything I may have missed.

======================================================================================

echo 1 > /proc/sys/net/ipv4/ip_dynaddr #This may help if you have a dynamic IP address \(e.g. slip, ppp, dhcp\)
echo 1 > /proc/sys/net/ipv4/conf/all/log_martians #Enable logging for malformed Ip Address
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/conf/all/proxy_arp
echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route
echo 0 > /proc/sys/net/ipv4/conf/all/accept_redirects

=====================================================================================

KInd Regards and thanks in advance

Brent Clark

#1 lore raw
Quoted 13 lines · Brent Clark

======================================================================================

echo 1 > /proc/sys/net/ipv4/ip_dynaddr #This may help if you have a dynamic IP address \(e.g. slip, ppp, dhcp\)
echo 1 > /proc/sys/net/ipv4/conf/all/log_martians #Enable logging
for malformed Ip Address
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/conf/all/proxy_arp
echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route echo 0 > /proc/sys/net/ipv4/conf/all/accept_redirects

Quoted 1 line

=====================================================================================

The following article may be useful:

http://www.securityfocus.com/infocus/1711

--
Mikhail

#2 lore raw
In reply to Brent Clark
Quoted 4 lines · Brent Clark

echo 1 > /proc/sys/net/ipv4/ip_dynaddr #This may help if you have a dynamic IP address \(e.g. slip, ppp, dhcp\)
echo 1 > /proc/sys/net/ipv4/conf/all/log_martians #Enable logging
for malformed Ip Address

"malformed IP Address" seems like an odd way to describe that. the IP address isn't malformed, it's not considered to be a valid source address on the inbound interface; i.e., it's "alien."

Quoted 2 lines

echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/conf/all/proxy_arp

i would be surprised if you want proxy_arp set to 1, unless you're trying to do something semi-strange. i could be mistaken...

Quoted 1 line

echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter

since you're enabling martian logging above, why are you disabling the feature that detects martians? "normally" you'd want rp_filter set to 1 on all interfaces, unless you know you're doing something intentionally that won't work with it enabled.

Quoted 3 lines

echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route echo 0 > /proc/sys/net/ipv4/conf/all/accept_redirects

-j

--
"Shut up brain or I'll stab you with a Q-Tip."
--The Simpsons