Say Hello! Networking for Professionals
Register Get Password Search Today's Posts Mark Forums Read
Join the Discussion

Not a member yet? Register for FREE!
Go Back   Join the Discussion / Discussion Groups / Computers & Gadgets
Reload this Page Linux Networking

Computers & Gadgets A great place to discuss computers, gadgets and the internet. PC, laptop, firefox, ie, linux, mac, ipods, digital cameras and more.

JOIN TODAY! It's FREE . . . Discuss topics and issues that matter to you!

8,000 active members posting their views, facts and opinions on issues and topics that are important to people of today.

Join a Discussion or better yet and Start a Discussion of your own!

Reply
 
Thread Tools
Old 08-11-2007   #1 (permalink)
mark
Interested participant
 
mark's Avatar
 
Join Date: May 2007
Location: Woodstock, GA, USA
Posts: 20
Default Linux Networking

I'm a little frustrated at the moment & I need to vent some, so WHY IS LINUX NETWORKING SO !#@$&*(* COMPLICATED???

At home, I have a desktop and a laptop computer. They are both connected to a Netgear RP-614 (wired) router. Everything works fine...until I try to make them talk to each other.

(Both are running Ubuntu 7.04, BTW, and I multi-boot my desktop to Windows XP Professional, for work purposes...)

From my desktop (in Ubuntu), I can SSH into my laptop. From my laptop, I get an error regarding port 22 if I try to go the other way. I've compared ~/.ssh, /etc/ssh and everything looks like it should work. I've also looked at /etc/hosts on both and can find no reason why it shouldn't work.

OK, fine - I'll use Samba. However, that doesn't work, either. After installing Samba on both computers (server & client), I still can't make them communicate. However, when I boot the desktop in to Windows and share a folder, I can connect from the laptop with no problem.

What am I missing?

Last edited by mark : 08-11-2007 at 10:38 AM.
"...I'm a user, not a programmer..."
mark is offline   Reply With Quote
Old 08-11-2007   #2 (permalink)
mark
Interested participant
 
mark's Avatar
 
Join Date: May 2007
Location: Woodstock, GA, USA
Posts: 20
Default Re: Linux Networking

And I'm about to go out for lunch - before I throw one or the other computer through the patio window...<g>
"...I'm a user, not a programmer..."
mark is offline   Reply With Quote
Old 08-11-2007   #3 (permalink)
c.dric
Agitator
 
c.dric's Avatar
 
Join Date: May 2007
Location: a pale blue dot
Posts: 635
Default Re: Linux Networking

a few -obvious- things i would check :

- do you have the ssh server installed and running on both computers ?
- did you set up the firewalls on both computers to allow inbound connections on port 22 ?
- try connecting using IP instead of hostname, you can get your ip with ifconfig in linux
- check the settings of the firewall on your router ...
I'm a simple man with complex tastes. (Calvin & Hobbes)
>> http://c.dric.be/gium >> http://bookmarks.c.dric.be/
c.dric is offline   Reply With Quote
Old 08-12-2007   #4 (permalink)
mark
Interested participant
 
mark's Avatar
 
Join Date: May 2007
Location: Woodstock, GA, USA
Posts: 20
Default Re: Linux Networking

[quote=c.dric;84879]a few -obvious- things i would check :

- do you have the ssh server installed and running on both computers ?
Yes, on both systems
- did you set up the firewalls on both computers to allow inbound connections on port 22 ?
I wasn't aware that Ubuntu blocked anything by default - I've not set up anything...
- try connecting using IP instead of hostname, you can get your ip with ifconfig in linux
Been there, done that...
- check the settings of the firewall on your router .../QUOTE]
In previous incarnations, both systems talked happily - and let's not forget the Windows experience
"...I'm a user, not a programmer..."
mark is offline   Reply With Quote
Old 08-12-2007   #5 (permalink)
chiefbutz
The Coding Wraith
 
chiefbutz's Avatar
 
Join Date: May 2007
Location: United States
Posts: 155
Send a message via AIM to chiefbutz Send a message via MSN to chiefbutz Send a message via Yahoo to chiefbutz
Default Re: Linux Networking

Ubuntu by default doesn't have a "firewall" so to speak, so if you didn't add one you should be ok on that note. Ok, you said you checked the hosts.deny file in /etc. As a step to see if it helps I would suggest adding the other computers IP to hosts.allow. Just do it like below:
Code:
ALL:*IP ADDRESS*
also, you should check iptables, which is something that can be setup and used like a firewall. Execute the following command in the Terminal:
Code:
sudo iptables -L
if you see your other computer's IP there it means it is probably being blocked.
My Homepage

"What man is a man who does not make the world better?" - Balian of Ibelin (Kingdome of Heaven)
chiefbutz is offline   Reply With Quote
Old 08-12-2007   #6 (permalink)
c.dric
Agitator
 
c.dric's Avatar
 
Join Date: May 2007
Location: a pale blue dot
Posts: 635
Default Re: Linux Networking

Quote:
Originally Posted by chiefbutz View Post
Ubuntu by default doesn't have a "firewall" so to speak, so if you didn't add one you should be ok on that note.
i may be wrong but i think ubuntu feisty has iptables started up by default.
you can use firestarter if you need a gui to set it up.

go in the policy tab then choose inbound traffic policy in the dropdown menu and add a rule for port 22.
I'm a simple man with complex tastes. (Calvin & Hobbes)
>> http://c.dric.be/gium >> http://bookmarks.c.dric.be/
c.dric is offline   Reply With Quote
Old 08-12-2007   #7 (permalink)
OrangeCrate
Eligible for a custom title
 
Join Date: May 2007
Location: USA
Posts: 1,576
Default Re: Linux Networking

Quote:
Originally Posted by c.dric View Post
i may be wrong but i think ubuntu feisty has iptables started up by default.
you can use firestarter if you need a gui to set it up.
That is correct.

For the OP, here is a good tutorial on Ubuntu Linux specifically, and Linux in general. This particular page gives you an overview of iptables and Firestarter.

Security on Ubuntu

The author of the site is Aysiu, who is valued member of the Ubuntu staff.
OrangeCrate is offline   Reply With Quote
Old 08-12-2007   #8 (permalink)
chiefbutz
The Coding Wraith
 
chiefbutz's Avatar
 
Join Date: May 2007
Location: United States
Posts: 155
Send a message via AIM to chiefbutz Send a message via MSN to chiefbutz Send a message via Yahoo to chiefbutz
Default Re: Linux Networking

i guess you are right, it does have iptables but, unless i am mistaken, it isn't setup by default to do anything
My Homepage

"What man is a man who does not make the world better?" - Balian of Ibelin (Kingdome of Heaven)
chiefbutz is offline   Reply With Quote
Old 08-12-2007   #9 (permalink)
MRiGnS
the wicked one
 
MRiGnS's Avatar
 
Join Date: May 2007
Location: Saarbrücken, Germany
Posts: 1,920
Send a message via ICQ to MRiGnS Send a message via Skype™ to MRiGnS
Default Re: Linux Networking

Quote:
Originally Posted by chiefbutz View Post
i guess you are right, it does have iptables but, unless i am mistaken, it isn't setup by default to do anything
Feisty has no open ports by default, if you want to open them you'll have to do it manually.

this will open port 22 for incoming tcp connections
Code:
sudo iptables -A INPUT -p tcp --destination-port 22 -j ACCEPT

to the OP try to read the manpage of iptables.

Code:
man iptables > ~/Desktop/iptables.txt
creates a *.txt with the manual on your desktop

Last edited by MRiGnS : 08-12-2007 at 10:23 PM.
regards,
Julian

my blog
MRiGnS is offline   Reply With Quote
Reply


Thread Tools



All times are GMT -5. The time now is 11:10 PM.



vBulletin® Version 3.6.7. Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32