LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Closed Thread
 
Search this Thread
Old 12-05-2010, 02:10 PM   #1
krisox
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
Redirect incoming traffic to an other port (ubuntu openvpn server)


Hello
My problem is a bit complicated, but i have simplified it...

I have set up an openvpn server on ubuntu via port tcp 443.
The server use a public network and almost every ports are blocked (not 443)
So when a client connect to the server, if it send traffic needing a blocked port, the connection cannot been etablished of course.
So i d like to know if it is possible to redirect all incoming traffic on the server to an other unblocked port (like 443) to bypass firewall.

I dont think openvpn offer this possibility but maybe with linux it is possible...
Thanks
 
Old 12-05-2010, 05:58 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,239

Rep: Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024
If you run it under the ctrl of xinetd, then port re-direction is possible: http://www.linuxtopia.org/online_boo...rappers-xinetd Section 42.5.4.3.3. Binding and Redirection Options.
That's a RHEL doc, but the principle should be the same.
 
Old 12-05-2010, 10:56 PM   #3
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
I know you tried to simplify your question, but this is a bit of a grey area. some of the LQ mods consider this type of behavior hacking (bypassing firewalls). It might help to know exactly what you're doing and why.

I'm not really sure what you're asking. If you have a working VPN server on port 443, then what's the problem? There won't be a way to automatically redirect random visitors across the VPN. Each user will need to install client software and log in.

xinetd is very useful. Just be extra cautious about redirecting ports. I'm not sure, but requests might appear to originate on the local host (if xinetd merely parrots the data). This can cause security vulnerabilities with some services and web apps.
 
Old 12-06-2010, 12:22 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
I closed this thread as it appears to me that the OP is
breaching (trying to breach) the policy of whoever runs
this "public network" w/ a firewall.

It would violate LQ policy to support such endeavours.

If I understood that wrong, and you're legitimately trying
to use the resources please elaborate via direct e-Mail, and
I can re-open the thread.



Cheers,
Tink
 
  


Closed Thread


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
Routing incoming traffic to NAT'ed VM on a hired dedicated server merlininthewood Linux - Networking 2 05-21-2010 03:30 PM
[HELP] redirect traffic to spesific port based on Traffic Content using iptables summersgone Linux - Server 2 06-22-2009 11:26 AM
OpenVPN sometimes does not forward all traffic to server depam Linux - Software 1 06-28-2008 04:13 PM
help with script to redirect server traffic avenger756 Programming 8 05-03-2007 08:50 AM
how to redirect traffic from one server to another orko Linux - Networking 1 08-12-2006 08:48 AM


All times are GMT -5. The time now is 10:59 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration