Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

GRE tunneling help

I'm not sure of how you're trying to 'tunnel' nor why, but most times you can simply use ssh to dynamically forward traffic through your sshd on your server.
The following sets up a SOCKS5 proxy on localhost using port 8080:
Code
ssh -C -D 8080 -fN [email protected]
The "-C" means compress the data; the "-D" means "Dynamic Forwarding; "8080" = local port; the "-fN" means to fork the process to the background, and Not to execute commands on the remote host.

Then setup your application to use the ssh connection, which depends on which app you're trying to use.

Example for Chrome/Chromium:
Code
chrome --proxy-server="socks://localhost:8080"

For Firefox go to Preferences > Advanced > Network > Settings;
Choose "Manual Proxy..." type "localhost" in the "SOCKS Host" field and check "SOCKS v5" and set the port to the same one you used in the first command - in this case it's "8080."
Spoiler (Click to View)
Then go to a new tab (Ctrl + T) and type:
Code
about:config
in the URL field.
Click through the nag screen, and type the following into the "Search" field:
Code
remote
This should return something about "blah-blah-remote.dns..." where you right-click on the last field to "Toggle" from "False" to "True." (this sends your DNS requests through the SSH connection)
Spoiler (Click to View)
Close out of that, and open some site that tells you what your IP address is to see if you're using the SSH "tunnel."

Spoiler (Click to View)
Setup your sshd_config to only allow connections from specified users from their respective IP addresses using public keys, deny all extraneous connections.

Then setup your firewall to drop all connections except those you want to allow.
Why not?
You should already have the necessary information, you've got the computer... Use it.
Yes, you'll need to add the allowed IP addresses, and you already have that information in /var/log/auth.log

Just cat | grep through the file for the username/IP address combos and > to a text file from where you can use this list to populate your sshd_config and your firewall rule set.

I suggest that you do some more reading regarding all of the steps involved in order to gain understanding.
In regards to your GRE problem, your kernel probably doesn't have support for loadable modules (and/or you don't have the GRE module)... you would need to rebuild your kernel.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by BLOW.Aug 25, 2016 08:30 AM 9 334 Aug 25, 2016 08:30 AM
Last Post: BLOW.
by LoomaanaatiiJul 10, 2013 03:43 AM 3 91 Jul 10, 2013 03:43 AM
Last Post: mInrOz
by DarkDeltaJul 14, 2011 05:10 PM 2 122 Jul 14, 2011 05:10 PM
Last Post: Alison Wonderland