LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-25-2014, 01:35 PM   #1
Ducktator
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Rep: Reputation: Disabled
Using Ubuntu VPS as internet gateway


Hi everyone,

I have a number of VPS servers, from chicagovps.net, running ubuntu 11.10 server edition. I also have a high end dedicated server running windows server 2008R2. I noticed the VPS servers have DDoS protection on them, and a gigabit pipe. I am looking for a way to possibly use one (or all of) my VPS servers to act as like a gateway/router for this windows box, so that all traffic sent to this VPS, is instantly routed to my windows, and that this VPS will also be able to absorb and mitigate any DDoS attacks.
In addition, it would be nice (but is not essencial, i would rather stick to simplicity here if at all possible, being quite inexperienced with linux), to be able to also use this box as a firewall, to filter out packets matching rules i deem toxic. (such as possibly port scans max size UDP packets, excessive SYN packets, or an unusally high PPS from the same host over a period of time etc)

Thanks for any assistance!


Edit: Just realised, i onl have one IP and network card on the VPS

Last edited by Ducktator; 01-25-2014 at 02:31 PM.
 
Old 01-26-2014, 04:00 PM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
talk to your provider for the VPSs, they should already have that available as an option.
 
Old 01-27-2014, 12:37 PM   #3
vl23
Member
 
Registered: Mar 2009
Posts: 125

Rep: Reputation: 8
iptables nat forwarding should do the trick
 
Old 02-04-2014, 09:36 AM   #4
Ducktator
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi, thanks for the responses. I asked my VPS provider, and they suggested i use a VPN for my purposes, however neither of us could get packet forwarding to work.

@vl23, how would this work? Would it not mean that the linux server would forward it's traffic to the windows machine, which would then reply to that packet with ITS public lan address? Either causing broken communication, or circumventing my DDoS protection?

Sorry if i have greatly misunderstood how this will work.
 
  


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
Ubuntu 11.04 based OpenVZ VPS is unable to connect to internet DComander1 Linux - Server 2 01-18-2013 10:09 PM
Ubuntu server as internet gateway russel_sc Linux - Server 2 02-04-2012 06:45 AM
iptables rules for an ubuntu gateway (filtering connections to and from Internet) Zingaro2002 Linux - Networking 4 05-06-2007 03:01 AM
Ubuntu 7.04 Linux Box as internet gateway trox Linux - Networking 1 05-05-2007 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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