LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-31-2016, 03:13 AM   #1
glupa4e
Member
 
Registered: Jan 2011
Posts: 321

Rep: Reputation: 7
Network configuration for LAN and WAN - DNS, port forwarding, etc.


Hello,

i have ftp server on my computer and an ftp client on my android phone. I am able to transfer files from the computer to the phone and vice versa. I am able to do that only in my LAN. I wondered if that could be possible also from WAN?

My internet connection is behind a router from my internet service provider. I have the password to configure it. I was told that that router was capable of doing VPN-connections.

So if i would like to be able to connect to my ftp server from WAN, do i need to enable port forwarding for the port 22 (SFTP)? How should i do it? On the router or on my computer where the ftp server is running?

One more question - the ftp-client in the LAN cannot access the ftp-server by its name, but only via IP-address. I guess i need to configure DNS-server somewhere in LAN. Where sould that be - on the router or on the computer where also the ftp-server runs?
 
Old 10-31-2016, 07:25 AM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
To access your computers from outside your local network (ie, remotely from your phone when it isn't connected to wifi), you need for forward the port(s) for whatever service you want to use. By default, ssh uses port 22, but that can be changed for security reasons to a different port (most brute force logon attacks are attempted over port 22).

However, by just doing that, you'd need to know your IP address to be able to connect to it. Many ISPs will change that IP occasionally, so there's no guarantee it will be what it was last time. This is where dynamic DNS services come into play. These services can provide you a domain name and forward it to your IP. To ensure the service knows your local IP, you keep a small script on your computer that will occasionally check your IP and will update the IP the service uses when needed.

Personally, I use http://duckdns.org. They are a free service and allow like 4 different subdomains per account. The free services typically require you to use a subset of their name, so, mine is bassmadrigal.duckdns.org (I just have a blank page served by apache). They provide a linux script and cron command (or a GUI option, but I've never used that) to make updating the IP automatic whenever your computer is running.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
High latency on LAN, but not on WAN (configuration) JohnLocke Linux - Networking 4 05-21-2014 08:57 AM
Dual WAN Plus Single LAN Interface configuration for a VPN device __vivek__ Linux - Networking 1 05-07-2014 04:05 PM
LAN/WAN Loopback Configuration Refael Alats Linux - Networking 0 05-28-2011 03:19 PM
DNS Server WAN-LAN connection problem DKLeader Linux - Newbie 3 10-08-2009 04:59 PM
Configuration of Susefirewall2 for use of pptp from local lan to wan mythanhluong SUSE / openSUSE 0 01-04-2007 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration