(E-Mail Removed) wrote:
> In article <(E-Mail Removed)>,
> Clifford Kite <(E-Mail Removed)> writes:
>>It appears to me that you need to add similar rules to the FORWARD chain
>>(and make sure IP forwarding is turn on).
> Well, that doesn't help. THese rules are early in the file, right
Yep, I messed up, guessing when I should have asked for clarification.
> after #Allow unlimited LAN traffic. The only things above it are
> setting policy, (I,O,F: DROP, -t nat PRE,POST,OUT: ACCEPT), MASQ,
> and loopback. The wierd thing is that the LAN doesn't have a problem
> with this address, just directly between the router and modem, which
> I didn't think I'd need FORWARD rules for anyway. I added the last
> 2 rules and it worked. No idea why.
> #Allow unlimited $CABLEMODEM traffic
> /sbin/iptables -A INPUT -i $EXTINT -s $CABLEMODEM -d $IPADDR -m state --state ESTABLISHED -j ACCEPT
> /sbin/iptables -A OUTPUT -o $EXTINT -s $IPADDR -d $CABLEMODEM -m state --state NEW,ESTABLISHED -j ACCEPT
> /sbin/iptables -t nat -A OUTPUT -o $EXTINT -d $CABLEMODEM -j ACCEPT
> /sbin/iptables -t nat -A POSTROUTING -o $EXTINT -d $CABLEMODEM -j ACCEPT
These ACCEPT all OUTPUT/POSTROUTING traffic to CABLEMODEM via EXTINT
in the NAT table, but without NAT'ing it. AINUI, that allows you to
connect to 192.168.0.1:80 (CABLEMODEM, port 80) from the router (OUTPUT)
and from the LAN (POSTROUTING).
> I'm already tried something similar, but maybe not this exactly.
Congrats, you made it this time.
> Thx, Chris
--
Clifford Kite