linux - How to connect to ftp server from within LAN when the router port-forwards external connection away from it -
sorry long question.
what means this: managing small lan protected router.
router 192.168.1.1 server 192.168.1.9 client 192.168.1.2 client 192.168.1.4 since have static ip isp, lets 245.34.344.34, can access lan @ address.
now, have set router's port forwarding config this: when ssh 245.34.344.34 out internet, forwards server 192.168.1.9:22. , when ftp 245.34.344.34, forwards client 192.168.1.2:21. fine.
then, when working within lan, on client 192.168.1.2 computer , want access 192.168.1.9 through ftp, router tries forward 192.168.1.2. not sure happening.
on server 192.168.1.9 (which runs ubuntu 14.04.3 lts (gnu/linux 3.19.0-47-generic i686), when sudo ufw status:
to action -- ------ ---- 80 allow anywhere 443 allow anywhere 22 allow anywhere 3000 allow anywhere 21/tcp allow anywhere 21 allow anywhere 80 (v6) allow anywhere (v6) 443 (v6) allow anywhere (v6) 22 (v6) allow anywhere (v6) 3000 (v6) allow anywhere (v6) 21/tcp (v6) allow anywhere (v6) 21 (v6) allow anywhere (v6) but if nmap localhost:
port state service 22/tcp open ssh 80/tcp open http 631/tcp open ipp 3306/tcp open mysql now on client 192.168.1.2, nmap 192.168.1.9:
port state service 21/tcp closed ftp 22/tcp open ssh 80/tcp open http 443/tcp closed https 3000/tcp closed ppp it shows server's port 21 closed.
i don't it.
can please me understand how reach server through ftp within lan?
thanks
as understand ftp daemon supposed running on 192.168.1.9. if should forward port 21 192.168.1.9 not 192.168.1.2. 1 problem.
another problem based on output of nmap 192.168.1.2 against 192.168.1.9 there no ftp daemon on 192.168.1.9. make sure installed, configured, , running.
if have networking configured on 192.168.1.2, should bypassing router access 192.168.1.9.
Comments
Post a Comment