LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 11-27-2005, 01:45 PM   #1
Pier
Member
 
Registered: Oct 2005
Location: Italy
Distribution: Gentoo
Posts: 83

Rep: Reputation: 17
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
 
Old 11-27-2005, 02:13 PM   #2
Brian1
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: Reputation: 61
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 05:37 PM.
 
Old 11-28-2005, 03:13 PM   #3
Pier
Member
 
Registered: Oct 2005
Location: Italy
Distribution: Gentoo
Posts: 83

Original Poster
Rep: Reputation: 17
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
 
Old 11-28-2005, 06:48 PM   #4
Brian1
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: Reputation: 61
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
 
Old 11-29-2005, 03:48 PM   #5
Pier
Member
 
Registered: Oct 2005
Location: Italy
Distribution: Gentoo
Posts: 83

Original Poster
Rep: Reputation: 17
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
routing 3 nic 2pc SchwipSchwap Linux - Newbie 1 07-23-2004 11:01 PM
2PC w/ Switch boot problems dsiguy Linux - General 1 12-30-2002 06:10 PM


All times are GMT -5. The time now is 07:47 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration