Re: IPTABLES MASQUERADE - WAN is OK but no LAN traffic...
- From: Grant <bugsplatter@xxxxxxxxx>
- Date: Thu, 31 Aug 2006 10:11:43 +1000
On 30 Aug 2006 08:28:05 -0700, wisptech@xxxxxxxxx wrote:
Thank you everyone who input... I got it working... Had some bad
rules in the firewall...
iptables -A FORWARD -i Ethernet0 -m limit --limit 10/s \
--limit-burst 10 -p icmp --icmp-type echo-request -j ACCEPT
iptables -A FORWARD -o Ethernet0 -m limit --limit 5/s \
--limit-burst 30 -p icmp --icmp-type echo-request -j ACCEPT
iptables -A FORWARD -p icmp -j DROP
As soon as I commented these out, everything started working. Anybody
know why these would cause the traffic to stop completely when they are
just supposed to limit icmp echo-requests?
You don't drop or limit ICMPs -- they're a vital part of tcp/ip
networking. Also make sure the first rules for INPUT and FORWARD
are something like these:
MSTATE="--match state --state"
....
iptables -A INPUT -p all $MSTATE ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -p all $MSTATE ESTABLISHED,RELATED -j ACCEPT
Apply rate limiting when starting NEW connections, not to the control
traffic, an example:
filter_traceroute_requests()
{
# traceroute
iptables -A INPUT -p udp --dport $TRPORT \
$MLIMIT 1/sec --limit-burst 10 \
-j $LOGGED "$PREFIX:inp:accept trace "
iptables -A INPUT -p udp --dport $TRPORT \
$MLIMIT 1/sec --limit-burst 10 -j ACCEPT
}
See also: <http://bugsplatter.mine.nu/junkview/iptables-save> for current
router firewall ruleset.
Grant.
--
http://bugsplatter.mine.nu/
.
- References:
- IPTABLES MASQUERADE - WAN is OK but no LAN traffic...
- From: wisptech
- Re: IPTABLES MASQUERADE - WAN is OK but no LAN traffic...
- From: Robert
- Re: IPTABLES MASQUERADE - WAN is OK but no LAN traffic...
- From: Pascal Hambourg
- Re: IPTABLES MASQUERADE - WAN is OK but no LAN traffic...
- From: wisptech
- Re: IPTABLES MASQUERADE - WAN is OK but no LAN traffic...
- From: wisptech
- IPTABLES MASQUERADE - WAN is OK but no LAN traffic...
- Prev by Date: Loopback issues
- Next by Date: Re: Loopback issues
- Previous by thread: Re: IPTABLES MASQUERADE - WAN is OK but no LAN traffic...
- Next by thread: Failover router ?
- Index(es):
Relevant Pages
|