Networking Forums

Networking Forums > Computer Networking > Linux Networking > Sharing External Port

Reply
Thread Tools Display Modes

Sharing External Port

 
 
Buck Turgidson
Guest
Posts: n/a

 
      01-12-2004, 12:24 PM
I can get into my Linux box at home from work using port 23, and forwarding
to port 22 internally, for ssh. Port 23 is about the only port open in my
employer's firewall.

If I setup a webserver on Linux, is there anyway to intercept incoming
traffic on port 23, and forward to either 22 or 80, based on the protocol?
I.e. forward ssh to 22, and HTTP to 80, internally?


 
Reply With Quote
 
 
 
 
Leon.
Guest
Posts: n/a

 
      01-12-2004, 10:12 PM

"Buck Turgidson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) s.com...
> I can get into my Linux box at home from work using port 23, and

forwarding
> to port 22 internally, for ssh. Port 23 is about the only port open in my
> employer's firewall.
>
> If I setup a webserver on Linux, is there anyway to intercept incoming
> traffic on port 23, and forward to either 22 or 80, based on the protocol?
> I.e. forward ssh to 22, and HTTP to 80, internally?
>


port 23 is open ? your employer is mad !


To break your employers security using this hole,
use ssh port forwarding.

so leave the port 23 mapped to port 22.


You map a local port , eg local port 80 , at home,
to port 80 on the work web server, when you log in to work via ssh.

see 'man slogin' or 'man ssh' for the instructions on the command line to
use.


you do get a problem with using domain names, but to solve this you can put
the domain name into /etc/hosts (but that breaks the domain name system
wide,

eg www.work.com.au 127.0.0.1
www.work.net.au 127.0.0.1

The reason is that the web browser will transfer the domain name it is
requesting to the web server ...and because using ip addresses you cant
access more than one domain name...


Ah, a bit more work, but instead of port forwarding to the web server ,you
can port forward to a proxy server , ( you could run 'squid' as a user...)
and then you can use that proxy server as your proxy server. and then you
dont need to put stuff in /etc/hosts ...


If you run squid at home,you can tell it to use ssh tunnel to access the
works proxy server, but only for works domain names.


if you dont run squid at home ,then you need to adjust proxy settings in the
web browser...
eg use netscape for accessing work, mozilla for the rest of the world.
or create a different user for mozilla to access work...



 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forwarding port to external server via iptables mz@newyorkcity.de Linux Networking 4 07-21-2005 10:37 PM
Port forwarding to an external server Optima Linux Networking 5 07-08-2005 08:46 PM
Sharing folders on an external HD JLunis Wireless Networks 0 04-08-2005 08:13 PM
NAT port forward to external IP address Niels Windows Networking 4 07-15-2004 01:52 PM
Sharing External Drive Mike Sands Home Networking 1 08-11-2003 12:08 AM



1 2 3 4 5 6 7 8 9 10 11