Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-27-2005, 12:45 PM
|
#1
|
Member
Registered: Oct 2005
Location: Italy
Distribution: Gentoo
Posts: 83
Rep:
|
2PC and 1 netgeardg834
Hi everybody.
Could someone please explain how could I share files, launch remote X sessions, share printer and so on thru a firewall router netgear 834 whom are connected 4 pc (2 win and 2 linux Slack)?
I would be happy if I could telnet the two Linux PC that can just ping each other now.
Thanks a lot,
Pier
|
|
|
11-27-2005, 01:13 PM
|
#2
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
Not the securest but the basic understanding. To be more secure only run the services needed and run a firewall on each an every machine opening what is only needed.
1. Define each lan machine with static IP's not dynamic.
2. Then setup each machine with the services needed to run. If any are running a firewall then ports need to be opened through the firewall.
3. Now you can test each from your lan machines and see if all is working.
4. Now on the router you need to port forward your external ip : port to an internal ip : port. Should be in your manuals. Example:
Ext wan IP x.x.x.x and port 22 to internal IP 192.168.x.x port 22.
If you are using more than one ssh service one each machine you can then use your clinet software to do the following:
Ext wan IP x.x.x.x port 22 to internal 192.168.x.1 port 22
Ext wan IP x.x.x.x port 222 to internal 192.168.x.2 port 22
Ext wan IP x.x.x.x port 223 to internal 192.168.x.3 port 22
Ext wan IP x.x.x.x port 224 to internal 192.168.x.4 port 22
Very basic but without more info it is hard to write a step by step setup:
Brian
Last edited by Brian1; 11-27-2005 at 04:37 PM.
|
|
|
11-28-2005, 02:13 PM
|
#3
|
Member
Registered: Oct 2005
Location: Italy
Distribution: Gentoo
Posts: 83
Original Poster
Rep:
|
Thanks Brian.
So far I have done what follows:
1) given 192.168.0.2 static IP to my HOME Pc
given 192.168.0.3 statica IP to my GARAGE Pc
2)made sure no firewall is set up on both PCs:
iptables --list -> returns
chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
or at least I suppose so. Sorry but this is the first time I've been faced with networking.
3) in the point 3) you mean that I would make sure that pinging is working?
4) This is the setting on my router:
Servizi in uscita (output services)
# Active Service Action LAN Users Server WAN Register
1 Yes Any(ALL) ALLOW always Any Any Always
Def. Yes Any ALLOW always Any Any Never
If I type
ftp 192.168.0.2 (from 192.168.0.3 and vice versa) I get
root@darkstar:/etc/dhcpc# ftp 192.168.0.2
ftp: connect: Connection refused
Thanks for any help,
Pier
|
|
|
11-28-2005, 05:48 PM
|
#4
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
Use a port scanner like nmap on one linux box and see if there is a ftp port open.
Is the ftp server daemon running on both?
If any things comes to me I will post back.
Brian
|
|
|
11-29-2005, 02:48 PM
|
#5
|
Member
Registered: Oct 2005
Location: Italy
Distribution: Gentoo
Posts: 83
Original Poster
Rep:
|
Hi Brian,
I partially solved the hitch by editing /etc/inetd.conf and uncommenting the ftp and telnet services on both pc's.
Yet whereas 192.168.0.2 (Garage) can ftp and telnet 192.168.0.3 (HOME), the latter can only telnet the first, returning the following message when ftp connection is attempted:
-----------------------------------------------------------------------------------
pier@darkstar:~$ ftp 192.168.0.2
Connected to 192.168.0.2.
421 Service not available, remote server has closed connection
ftp> quit
pier@darkstar:~$ telnet 192.168.0.2
Trying 192.168.0.2...
Connected to 192.168.0.2.
Escape character is '^]'.
darkstar login: pier
Password:
Linux 2.4.31.
Last login: Tue Nov 29 21:33:55 +0100 2005 on pts/0 from 192.168.0.3.
No mail.
An expert is a man who has made all the mistakes which can be made, in a
very narrow field.
-- Niels Bohr
pier@darkstar:~$ ls
eagle/
-------------------------------------------------------------------------------------
Any hint would be very welcome,
thanks,
Pier
|
|
|
All times are GMT -5. The time now is 01:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|