KVM Debian - Disabling ICMP Redirect Acceptance makes SSH and ping impossible -
i setting vpn lt2p/ipsec on debian kvm following tutorial : http://bailey.st/blog/2011/07/06/secure-ipsecl2tp-vpn-for-on-the-road-android-devices/
issuing command :
root@localhost:~# ipsec verify
i got following output
checking system see if ipsec got installed , started correctly: version check , ipsec on-path [ok] linux openswan u2.6.28/k2.6.32-5-686 (netkey) checking ipsec support in kernel [ok] netkey detected, testing disabled icmp send_redirects [failed] please disable /proc/sys/net/ipv4/conf/*/send_redirects or netkey cause sending of bogus icmp redirects! netkey detected, testing disabled icmp accept_redirects [failed] please disable /proc/sys/net/ipv4/conf/*/accept_redirects or netkey accept bogus icmp redirects! checking pluto running [ok] pluto listening ike on udp 500 [failed] cannot execute command "lsof -i udp:500": no such file or directory pluto listening nat-t on udp 4500 [failed] cannot execute command "lsof -i udp:4500": no such file or directory checking 'ip' command [ok] checking 'iptables' command [ok] opportunistic encryption support [disabled]
so edited setting in /etc/sysctl.conf to
disable icmp redirect acceptance
net.ipv4.conf.all.accept_redirects = 0
i restarted networking in /etc/init.d
now problem comes : cannot connect through ssh kvm anymore nor ping ip. (the thing can use vnc)
how connect via ssh again without enabling icmp redirect acceptance?
i find soluton github gist: https://gist.github.com/kryptek/7683862
Comments
Post a Comment