Dear all,
This is my current iptables (with default policy = Accept) and no rules.
Code:
[root@racnode1 ~]# iptables -L -v
Chain INPUT (policy ACCEPT 77072 packets, 7890K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 70306 packets, 129M bytes)
pkts bytes target prot opt in out source destination
[root@racnode1 ~]#
I have decided to allow only incoming network connection from my own subnet and hence
Code:
[root@racnode1 ~]# iptables -A INPUT -s 192.168.0.0/24 -j ACCEPT
[root@racnode1 ~]# iptables -L -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
178 9055 ACCEPT all -- any any 192.168.0.0/24 anywhere
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 186 packets, 316K bytes)
pkts bytes target prot opt in out source destination
[root@racnode1 ~]#
Noted that my default policy is still ACCEPT, hence I
Code:
[root@racnode1 ~]# iptables --policy INPUT DROP
===============================================================
Upon this, I have 2 issues
a) my iptables -L -v command can't display fully, i am stuck at below
Quote:
[root@racnode1 ~]# iptables -L -v
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
b) my ssh login is very slow
Quote:
login as: root
-- waited quite sometime before prompting me for password
===============================================================
If i removed revert the INPUT policy to ACCEPT, then everything will be fine as normal.
Why ?
Thanks and look forward to your advises.
Regards,
Noob ;(