Re: no ssh on eth0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> Hello,
>>
>> I a internet server with :
>>
>> eth0 as WAN and eth1 as LAN.
>>
>> I want to prevent ssh on eth0.
>>
>> Howto do it ?
>
>iptables -I INPUT -i eth0 -p tcp --dport 22 -j DROP
>

If
	eth0 10.0.0.1
	eth1 192.168.222.3
then
/etc/ssh/sshd_config:

	ListenAddress 192.168.222.3


Jan Engelhardt
-- 


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux