I have assigned the IP to both eth0 and eth1 interface. I am able to login using ssh from both the IP. Thanks Ganesh -----Original Message----- From: Jan Engelhardt [mailto:jengelh@xxxxxxxxxx] Sent: Wednesday, October 05, 2011 3:44 PM To: Netravali Ganesh Cc: netfilter@xxxxxxxxxxxxxxx Subject: Re: How to block ssh on specific ethernet interface On Wednesday 2011-10-05 06:24, Netravali Ganesh wrote: >Hi.. > >I have multiple Ethernet interface on the system. I need to enable the ssh on eth0 and block the ssh on all the other interfaces. Below is the iptables rules I am using. This is not working form pls lls let me know what is wrong. I am using RHEL6.1 system. You don't seem to receive any such packets. > > [root@localhost ~]# iptables -A INPUT -i eth1 -p tcp -m tcp --dport 22 -j DROP > [root@localhost ~]# iptables -L -v -n >Chain INPUT (policy ACCEPT 40 packets, 5240 bytes) > pkts bytes target prot opt in out source destination > 0 0 DROP tcp -- eth1 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 > >Thanks >Ganesh > >-- >To unsubscribe from this list: send the line "unsubscribe netfilter" in >the body of a message to majordomo@xxxxxxxxxxxxxxx >More majordomo info at http://vger.kernel.org/majordomo-info.html > ��.n��������+%������w��{.n����z���)��jg��������ݢj����G�������j:+v���w�m������w�������h�����٥