LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-30-2006, 09:46 AM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
connect to my pc how to..


Hi all,I have working in a proxy server env.I have a account in my pc there..Everything is okey..I mean i can ping any servers in the world..and nmap it..There is no firewall..
Now i wanna to connect to my pc from outside the network..
The IP address of my PC is 192.168.2.22 in a Proxy environment..So it's an Local network.I can not ping the system from Ouside of my campus..But i can ping any server from inside of my proxy server..

From this point..How can i connect to proxy server first and then connect to my local network..

Thx in advance.
 
Old 03-31-2006, 03:25 AM   #2
spanishwasabi
LQ Newbie
 
Registered: Mar 2006
Location: Spain
Distribution: Ubuntu
Posts: 25

Rep: Reputation: 15
Nat?

Hi,

Looks like you are behind a NAT.

In this case you must instaure a reverse NAT.

That means, you must configure your proxy so that all incoming sessions arriving to port A will be forwarded to port B of machine C (being C in your internal network).

Enjoy,

G
 
Old 03-31-2006, 04:21 AM   #3
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
I have just confused...Can u explain bit more..
 
Old 04-01-2006, 05:03 AM   #4
spanishwasabi
LQ Newbie
 
Registered: Mar 2006
Location: Spain
Distribution: Ubuntu
Posts: 25

Rep: Reputation: 15
Network Address Translation

Wikipedia is your friend:
http://en.wikipedia.org/wiki/Network...ss_translation

What it means is that you have your internal network (192.168.1.0) and the Internet. And when you connecto to an address in the Internet from your internal network, your modem (the one doing NAT) will keep a table of equivalences. Who send what to who, so he can forward the messages back.

The same applies in Reverse NAT:
Your router will receive a request for connection at his external IP address at a certain port. You can configure it telling him that "all connections arriving from the Internet at your port PA will be forwarded to the internal address B at port PB".

For example, you can tell him that all connections to port 80 from the Internet be redirected to port 8080 of your internal machine 192.168.1.40 (actually your web server).
 
Old 04-01-2006, 05:22 AM   #5
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
oh oh..then who is the respo. to correct either me or admin..can i correct it?
 
Old 04-02-2006, 04:39 AM   #6
spanishwasabi
LQ Newbie
 
Registered: Mar 2006
Location: Spain
Distribution: Ubuntu
Posts: 25

Rep: Reputation: 15
At work...

Well... if you are talking about your work environment, I guess you have an admin that is in charge of such configurations. And I guess, unless you have a very good reason for it, he will not let you access your working machine from outside unless you have a good reason for it.

But the most probable thing is that, if in your work you need access to your network to work, you already have implemented a bridge to enter the network, through a passerelle for example.

Enjoy,

G
 
Old 04-02-2006, 09:44 AM   #7
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
but it seems that, ping is not reachable my system..so the router is not allowed by setup itself.Where to edit it either router config. or proxy server configuration?
thx
 
Old 04-03-2006, 03:54 AM   #8
spanishwasabi
LQ Newbie
 
Registered: Mar 2006
Location: Spain
Distribution: Ubuntu
Posts: 25

Rep: Reputation: 15
Review

Ok, let's review your first mail and try yo find more about your situation:

> Hi all,I have working in a proxy server env.I have a account in
> my pc there..Everything is okey..I mean i can ping any servers in
> the world..and nmap it..There is no firewall..
Well... that fact that it's not firewalled for outbound connection does not mean that it does not firewall inbound connections. A lot of servers/proxies/machines have ping answers disabled in order to minimize the information they give to the outside world.



> Now i wanna to connect to my pc from outside the network..
> The IP address of my PC is 192.168.2.22 in a Proxy
> environment..
I guess here you mean that you have an internal network 192.168.2.0/24 and that you go through a machine/firewall/NAT/proxy...

So we have:

(Your PC) 192.168.2.0/24 <-> 192.168.2.1(server)a.b.c.d <-> Internet

> So it's an Local network.I can not ping the system
> from Ouside of my campus..But i can ping any server from inside
> of my proxy server..
You can not ping a.b.c.d because the ping might be simply disabled.
You can not ping your working machine because it has a private network IP address.

You can ping and nmap everyone from inside your company network.

Ok... now the questions are:
1) Do you have access to (account in) the server (proxy, nat,...)?
2) Do you know exactly what is the server doing? NAT, proxy,... the solutions will be different depending of what's running. And if it's proxy, are we talking of an HTTP proxy? SOCKs proxy? Other proxy?
3) Do you know what's running server? Linux, a Linksys, the model...

Depending on your answers the solution might be different.

Oh... and did you verify it's ok with your working place policies to open such "backdoors" into the network? It's not permitted everywhere. And furthermore, they might already have a VPN solution to access your network from outside the company.

In the mean time, you might want to play with:
http://freshmeat.net/projects/harm/
http://linide.sourceforge.net/nat-traverse/
http://samy.pl/chownat/
Those look like really nice projects. In those where you need to start commands at both machines at the same time, it would be possible to use a cron job for the synchronosation.

Enjoy,

G

G
 
  


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
Unix-connect: can't connect to server jrdioko Linux - Software 1 01-08-2006 04:56 PM
can't connect wifi at home, but can connect everywhere else Javi2 SUSE / openSUSE 1 08-25-2005 06:49 PM
Samba: can't connect to my local linux machine but can connect to windows. Royle Linux - Networking 3 01-18-2005 05:32 PM
Problem withInternet, DHCP, connect with eth0 down work, connect with eth0 up not zowey Linux - Networking 1 03-12-2004 10:05 AM
Can connect broadband but can't connect Internet satimis Linux - Networking 4 01-31-2004 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:18 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
Open Source Consulting | Domain Registration