LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-01-2007, 01:09 PM   #1
jabka
Member
 
Registered: Sep 2005
Distribution: Debian unstable && Kazit (reformated knoppix)
Posts: 194

Rep: Reputation: 31
how can i tunnel all network with ssh connection ?


Good day,...

i have heared about tunneling specific programs with ssh (setting up firefox and gaim azureus to use ssh) but i wish more :
i need to find a way to take all my network transfer and tunnel them to a spesific ssh season:
for example i have a pc that connected to the internet (for example the IP will be 84.84.84.84)
this pc uses debian Lenny with sshd started on it.

i take a client pc and do:
Code:
ssh -2 -R 7654:localhost:7654 -A -D 1080 user@84.84.84.84
but now i need to make each program to use socks proxy server/

what i wish to do is to same how tunnel all connections to the ssh seasion.
i guess i should create a rule to iptable to send all connection attempts to that port but im not sure :
1.how to do that with iptables (rule that will forward all connections to spesific port on the client)
2.that this is the right solution

P.s.
client :
Acer 5102 Wlmi running sid amd64.
Server :
Lenny i386.
 
Old 07-02-2007, 11:15 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
This doesn't sound like a job for iptables - or ssh for that matter.

Have you considered OpenVPN?
 
Old 07-06-2007, 03:08 PM   #3
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
http://www.openbsd.org/cgi-bin/man.cgi?query=ssh

Look at the SSH-based VPN section.
 
  


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
setting up an ssh soxy or local ssh tunnel from within an ssh soxy Mangenius Linux - Networking 0 03-05-2007 03:15 PM
SSH Tunnel - need some help on this MeridianRebel Linux - Networking 2 08-11-2005 02:10 PM
ssh tunnel crep Linux - Networking 2 08-25-2004 08:24 PM
SSH connection lags within network eam Linux - General 3 08-02-2004 10:17 AM
Ssh Tunnel tinaa Linux - Software 7 07-29-2003 07:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:09 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