iptables block ssh connections with putty
Hi all,
I run a SuSE 8.1 server with kernel 2.4.19 hosted by some provider.
I want to set up a couple services. but first of all I need to make
shure to be able to reconnect. - but it fails (without rebooting)
this is what I do
Using username "achim".
Authenticating with public key "rsa-key-20030616" from agent
Last login: Fri Jul 4 23:04:53 2003 from
p3ee0608a.dip0.t-ipconnect.de
Have a lot of fun...
achim@ip:~> su -
Password:
ip:~ # cd bin
ip:~/bin # lsmod
Module Size Used by Not tainted
isa-pnp 31520 0 (unused)
ipv6 150036 -1 (autoclean)
tulip 41344 1
lvm-mod 65184 0 (autoclean)
reiserfs 193424 1
ip:~/bin # ./testreboot &
[1] 10048
ip:~/bin #
Broadcast message from root (pts/0) (Fri Jul 4 23:48:32 2003):
The system is going DOWN for reboot in 3 minutes!
ip:~/bin # cat logiptables
#!/bin/sh
#iptables -v -F
#iptables -v -X
#iptables -v -Z
#IFACE="eth0"
#iptables -v -P INPUT ACCEPT
#iptables -v -P OUTPUT ACCEPT
#iptables -v -P FORWARD ACCEPT
#iptables -v -A INPUT -j LOG --log-prefix "AJK LOG IN : "
#iptables -v -A OUTPUT -j LOG --log-prefix "AJK LOG OUT : "
#iptables -v -A FORWARD -j LOG --log-prefix "AJK LOG FORWARD: "
iptables -v -A INPUT -j ACCEPT
iptables -v -A OUTPUT -j ACCEPT
iptables -v -A FORWARD -j ACCEPT
tail -f /var/log/messages | grep AJK >> ~achim/log/log.txt &
# THE END
# ================================================== ================
ip:~/bin # ./logiptables
ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0
ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0
ACCEPT all opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0
ip:~/bin # iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ip:~/bin # lsmod
Module Size Used by Not tainted
iptable_filter 1740 1 (autoclean)
ip_tables 11704 1 [iptable_filter]
isa-pnp 31520 0 (unused)
ipv6 150036 -1 (autoclean)
tulip 41344 1
lvm-mod 65184 0 (autoclean)
reiserfs 193424 1
ip:~/bin #
somehow I have the impression that only loading the module ip_tables
cuts me out.
Is there someone, who can help? Thanks in advance!
- Achim
|