Firewall workaround -detailed

This is a discussion on Firewall workaround -detailed within the Linux Networking forums, part of the Linux Forums category; It would be realy nice if someone could help me with this: Situation: I am useing a Windows XP PC ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2004
Benjamin Dickgießer
 
Posts: n/a
Default Firewall workaround -detailed

It would be realy nice if someone could help me with this:

Situation:
I am useing a Windows XP PC at a student hall. To connect to the internet I
am useing the university connection. Unfortunatly there are only around 5
open ports (80,21,22,23,6667).
My aim is to make a work around to this firewall.

Plan:
Create a VPN with an outside suse linux 9 server with a static ip on an open
port and use this pc as a gateway.


144.82.201.0/23
User --------> |FIREWALL| --->( Internet )
| /\ | |
| | | \/
|-----------------VPN----------> Linux Server
10.3.0.0/32

User:
[VPN]
IP: 10.3.0.2/32
Gateway: 10.3.0.1

[Uni net]
IP: 144.82.200.116/23
Nameserver: 144.82.100.1
144.82.100.41


Linux Server:
[VPN]interface tun0
IP: 10.3.0.1/32

[Internet] - interface eth0:
IP: 217.172.172.111/32
Nameserver: 217.172.166.7
217.172.191.7
Gateway: 217.172.172.1

What I have done:
I created a tunnel between the 2 pc's with openvpn
(openvpn.sourecforge.net).

Problem:
How do I setup the Suse Linux PC in order that it works properly as a
gateway and is there anything else to do on the Windows pc (route add?).

I tried the following without a success:
I have to add that I'm a total linux nub and that I got this information
from:
http://www.yolinux.com/TUTORIALS/Lin...rkGateway.html
On Linux PC:
iptables --flush - Flush all the rules in filter and nat
tables
iptables --table nat --flush
iptables --delete-chain - Delete all chains that are not in default
filter and nat table
iptables --table nat --delete-chain

iptables --table nat --append POSTROUTING --out-interface eth0 -j
MASQUERADE
iptables --append FORWARD --in-interface tun0 -j ACCEPT

echo 1 > /proc/sys/net/ipv4/ip_forward

route add -net 10.3.0.0 netmask 255.255.255.0 gw 217.172.172.1 dev tun0
> SIOCADDRT:: Network not reachable.


Could someone help me with this?
Thanks alot!

Benjamin Dickgießer



Reply With Quote
  #2 (permalink)  
Old 01-16-2004
Tauno Voipio
 
Posts: n/a
Default Re: Firewall workaround -detailed

Benjamin Dickgießer wrote:
> It would be realy nice if someone could help me with this:
>
> Situation:
> I am useing a Windows XP PC at a student hall. To connect to the internet I
> am useing the university connection. Unfortunatly there are only around 5
> open ports (80,21,22,23,6667).
> My aim is to make a work around to this firewall.
>


Have a look at corkscrew <http://www.agroman.net/corkscrew/>, and
httptunnel <http://www.nocrew.org/software/httptunnel.html>, before
construction anything totally new.

HTH

Tauno Voipio
tauno voipio @ iki fi

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:16 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0