On my firewall I have mapped external port 2022 with internal port 22 for my public ip.
But when i do #ssh <my public ip> 2022
It shows error that verification failed.
iptables -F
root@OpenWrt:~# showmount -e localhost clnt_create: RPC: Program not registered
root@OpenWrt:~# dmesg | tail [ 22.252000] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready [ 24.228000] eth1: link UP - 100/full - flow control off [ 24.244000] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready [ 30.124000] svc: failed to register nfsdv3 RPC service (errno 5). [ 31.588000] device eth1 entered promiscuous mode [ 31.596000] br-lan: port 1(eth1) entered forwarding state [ 31.600000] br-lan: port 1(eth1) entered forwarding state [ 31.652000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 31.684000] eth1: link UP - 100/full - flow control off [ 33.604000] br-lan: port 1(eth1) entered forwarding state
root@OpenWrt:~# /etc/init.d/nfsd start root@OpenWrt:~# showmount -e localhost Export list for localhost: /mnt/3tb *
root@OpenWrt:~# dmesg | tail [ 24.228000] eth1: link UP - 100/full - flow control off [ 24.244000] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready [ 30.124000] svc: failed to register nfsdv3 RPC service (errno 5). [ 31.588000] device eth1 entered promiscuous mode [ 31.596000] br-lan: port 1(eth1) entered forwarding state [ 31.600000] br-lan: port 1(eth1) entered forwarding state [ 31.652000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 31.684000] eth1: link UP - 100/full - flow control off [ 33.604000] br-lan: port 1(eth1) entered forwarding state [16642.280000] svc: failed to register lockdv1 RPC service (errno 124).
root@OpenWrt:~# /etc/init.d/portmap enable root@OpenWrt:~# /etc/init.d/nfsd enable
echo "Test Mail" | mail -s "Test" me@mydomain.com