I building a linux server and today I have a problem. I'm using ubuntu for user not ubuntu server. My server use 2 ways to connect and use 2 different router
*1: Using an 4 ports LAN card to make a bonding mode, the router have gateway 192.168.1.1, the IP of bonding is 192.168.1.147 .The bonding is working good, I can easy connect to sever.
*2: Using normal internet port on mainboard, gateway is 192.168.5.1, IP for server is 192.168.5.11 . This connection use for SFTP server.
Check this pictures to see my connection: ifconfig -a ifconfig -a
I make a sftp server using openssh, here is my test case using filezilla:
Connect to server via LAN ip 192.168.1.147 and external ip of router 192.168.1.1: working
Connect to server via LAN ip 192.168.5.11: working
Connect via external ip of router 188.8.131.52: not working
The result of not work test from filezilla:
Status: Connecting to 184.108.40.206:3389...
Response: fzSftp started, protocol_version=8
Command: open "Deadlinesftp@220.127.116.11" 3389
Error: Network error: Connection timed out
Error: Could not connect to server
I have already do the port redirection on router, and this router work well with another windows server. I feel like something in ubuntu OS is blocking the connection via external ip of 192.168.5.1, I turned off the ubuntu firewall and still not work. I have to focus on 192.168.5.1 because this is the internet line use for ftp or sftp, can't use another one.
Does anyone here know why and can help me with this problem please.
Thank you so much.
sudo route del default dev bond0