Avi <(E-Mail Removed)> wrote:
[iptables script]
For fixing iptables problems the output of iptables-save would
be better. What I miss is the default policy of the involved
chains. Check the FORWARD chain in particular. Make sure that
the traffic is allowed in the FORWARD chain in both directions.
I would also completly rewrite the script to deny by default
and just allow certain traffic through. I would also propose
to look into connection tracking and decide whether it would
make your script more straight-forward. See
http://iptables-tutorial.frozentux.n...-tutorial.html
for further information.
> im tryin to allow
> access via ssh to a machine within the internal network. The problem
> is when i connect from outside, it hangs, it does not refuse the
> connection, it just hangs there tryin to connect. It seems to work
> half-way but not completely, am i missing something?
Use tcpdump/ethereal to check how far your traffic travels
or use the iptables LOG action before any DROP rule for
debugging. Inspecting the counters listed via iptables-save
is also sometimes helpful to detect were the packets are
dropped.
HTH
Ciao, Horst
--
»When pings go wrong (It hurts me too)« E.Clapton/E.James/P.Tscharn