LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   2PC and 1 netgeardg834 (https://www.linuxquestions.org/questions/linux-networking-3/2pc-and-1-netgeardg834-386994/)

Pier 11-27-2005 12:45 PM

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

Brian1 11-27-2005 01:13 PM

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

Pier 11-28-2005 02:13 PM

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

Brian1 11-28-2005 05:48 PM

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

Pier 11-29-2005 02:48 PM

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:06 AM.