WAN IP Alias / Masq


Recommended Posts

Hi guys.

Not sure wether this belongs here or in internet & security.

Bsicaly I have a /29 subnet on the internet provided by my ISP and my growing number of servers and workstations and devices has stretched it to its limit in routing mode. I have begged my ISP for a /28 but as i cant justify it, and the world is running short on IPv4 adresses they wont let me have one.

My solution would be to buy a Draytek Vigor 2600 router , which means i can put my network on a local subnet, say 192.168.1.0/24 then this router is capable of me setting up what it calls WAN IP aliases so the 6 unused ip adresses (network, broadcast and router are taken) in my /29 could be forwarded to 6 ip addresess i specify on my /24 network.

lets say i wan ip alias internet ip adress 123.123.123.123 to 192.168.0.10

the router cleverly shows all outgoing traffic on the wan port which comes from 192.168.0.10 on the lan port to be coming from 123.123.123.123 and then any traffic comign in on the routers wan port adressed for 123.123.123.123 it forwards to 192.168.0.10 . this means that whilst 192.168.0.10 can co-exist on my now much mor eexpndable network, it can also benefit from public ips and be accessable fro mthe outside.

However, i cannot afford a Draytek vigor router, but i do have a spare pc (p2-300 256mb ram 2 nics :) ) and my current router can bridge, so i could bridge it to my spare box and let that do the routing.

I have been looking at linux distros to do this. one i have seen has been ipcop which seems to manage this only half way, it can masquerade traffic inwards but not outwards.

I have also looked at smoothwall which doesnt seem to have the ability to do this at all.

can anyone suggest a solution and/or point me in the right direction ?

BTW the linux box also acting as a firewall would be nice, but its not necaserry as i can firewall the machines themselves.

Link to comment
https://www.neowin.net/forum/topic/269151-wan-ip-alias-masq/
Share on other sites

Dude, I got your PM -- and I would be glad to help. But I'm a bit confused - Why do you need all those public IP's?

You mention "growing number of servers and workstations and devices", and then state something about not being able to afford the router you want? Dude unless I am missing something - that router is like ?200, surely someone that can afford "growing numbers of servers and workstations" can afford to lay out 200 clams on the router they want??;))

Is this a business or all for your own Fun? Anyway - off the top, I know for a fact that the clarkconnect 3.0 (beta right now - http://www.clarkconnect.org/projects/beta4_notes_3.0.php) router/firewall distro can do it right out of box - with a pretty web interface page to set it all up with;))

You want 1 to 1 NAT -- correct?

post-14624-1105326517_thumb.jpg

The home edition is FREE - fits your budget;))

Why exactly do you need to bridge anything with your old router? Just use the PC router, which you can even put in multiple nics to allow for a DMZ segment, etc.. Just connect into a switch - or multiple switches... Why exactly do you need to bridge anything?

Any distro running IPTables can do 1:1 natting, so I am guessing your looking for a distro that has it all ready for you to play with? CC is one of those - but I am sure most of the others can do it as well, just might need a bit of help;))

cheers dude, its not for business, its just for my fun (the link in my sig has nothing to do with it btw) , I guess i lie when i say i cant afford a vigor 2600, but ide rather do it this way and save the money.

I havent come across CC until now, it looks just what I need.

The point is I dont need ALL of those public IPS but i need a few, and I want all my devices on the same network , which has been fine as ive used my /29 but im just about to grow out of it with a new laptop. now with this solution I can have a more expandable private network, and map through the public IPs to machines where relevant.

when i talk about bridging to the linux box, its because i have adsl, and I dont have an adsl modem, just a combined ADSL modem/router, but i can set this to transparent bridging mode so that it just puts all traffic onto a NIC on the linux box.

I was reading up on the iptables 1:1 nating after i posted this, i was going to play with it, but i would prefer something with a web interface, this CC seems perfect (as far as i can see the competition IPCOP an Smoothwall dont offer 1:1 NAT (AKA wan ip aliases) in their interfaces, although im sure its possible to just do it through the console if i sused out how.

anyways CC it is then , thanks buddy big help.

k...why do you "need" public address space? I can't imagine why anyone would need that many public addresses all at the same time. And if you already have a router, why don't you just use that? Why do you need a "Draytek Vigor 2600"? Why not just buy a cheap Linksys/Netgear cable/dsl router? They're like sub-$70 USD.

Maybe you should add second NICs to your PCs and setup a private network. One NIC for the public address space, the other private. That makes security about 100000000 times easier to manage, since you only need to firewall the public connection. Sorry if this comes off as rash, but I totally don't get what it is you're doing.

Oh, and linux will easily be able to handle that stuff.

anyways CC it is then , thanks buddy big help.

585265285[/snapback]

Your more than welcome - let me know if you have any ?'s with CC - been using it for a quite bit now, pretty slick little distro. This is their first release using Fedora - they use to run on RH, if you want to play with any of the snort stuff, there is a bit of a bug in this beta - but instuctions on how to run apt-get to fix it is in the forums. They may have already updated the iso?

Glad to hear I could help - there was another thread today, where I was a "D_CK" and he had fogotten more than I knew, etc.. ;) And everyone on the board thought so, etc..

I really do believe the man was off his meds or something - I asked a question, and next thing I know I don't know anything, I'm a D_CK, etc.. etc..

The thread has been deleted - not sure exactly why, never heard anything from the mods about it or anything ;)

k...why do you "need" public address space?  I can't imagine why anyone would need that many public addresses all at the same time.  And if you already have a router, why don't you just use that?  Why do you need a  "Draytek Vigor 2600"?  Why not just buy a cheap Linksys/Netgear cable/dsl router?  They're like sub-$70 USD.

Maybe you should add second NICs to your PCs and setup a private network.  One NIC for the public address space, the other private.  That makes security about 100000000 times easier to manage, since you only need to firewall the public connection.  Sorry if this comes off as rash, but I totally don't get what it is you're doing.

Oh, and linux will easily be able to handle that stuff.

585265360[/snapback]

I need a few public adresses to map to a few servers, whilst the rest of my machines have internet access and remain on the same network. my current router and a sub $70 router would be able to NAT or route but not both together and not mixed A vigor, or the solution budman gave above could.

Adding 2nd nics to machiens makes it messy, and why do that when it can be done in software.

Im not sure why you dont get what im doing, I explained it pretty well. but like you say linux can handle it easily, I realised that it was just a case of how, and the easiest answer seems to be the CC linux distro above.

I will post back when ive got it all running, might be a couple of days yet, got to do it in my spare time which isnt that much.

Glad to hear I could help - there was another thread today, where I was a "D_CK" and he had fogotten more than I knew, etc.. ;)  And everyone on the board thought so, etc..

I really do believe the man was off his meds or something - I asked a question, and next thing I know I don't know anything, I'm a D_CK, etc.. etc..

The thread has been deleted - not sure exactly why, never heard anything from the mods about it or anything ;)

585265420[/snapback]

yeh he was a muppet, I spotted the thread, was following it, and then it disapeared.

yeh he was a muppet, I spotted the thread, was following it, and then it disapeared.

585265456[/snapback]

hehehe - was kind of funny ;) I had just put together quite a few "Thank You" links in answer to his request I do my own research about my threads and how I don't help anyone, etc.. Next thing you know - thread gone? I think maybe he had me mistaken with someone else?? He made some comment about 14,000+ posts -- but had my join date right.

Crazy ;)

So you got CC downloaded and installed yet? ;)

So you got CC downloaded and installed yet? ;)

585265503[/snapback]

Not yet, i will do though, and ile let you know how it goes.

Like i said above, i have precious little spare time, but this is a project i want to do properly. Im going to use 3 NICs too so that I can keep my wireless network seperate and have vpn over wireless for LAN access.

This is gonna be a fun project.

Edited by Inertia

Ive got it installed and workign now :D i love it very powerfull, but for soem of the features it says i need to register, how do i make an account to register ? Ive had a quick scout around their site and cant sus it, i am knackered though ive probably missed it.

wel its working well at the mometn, ile tweak it up when im more awake.

Ive got it installed and workign now :D i love it very powerfull, but for soem of the features it says i need to register, how do i make an account to register ? Ive had a quick scout around their site and cant sus it, i am knackered though ive probably missed it.

wel its working well at the mometn, ile tweak it up when im more awake.

585269976[/snapback]

Yeah they do hide it quite well (who would ever think to look under the login tab? --> ;) I mean really ;)

post-14624-1105542624_thumb.jpg

Have some coffee - try again :) Then you register your system as a home system, etc.. This will allow to check some basic stats of your machine from anywhere - from their website, etc.. They provide dns to the public IP address, etc.. So of the other features are not available to the FREE home verison, etc..

yeh i nailed that the morning after i posted :)

im loving this system the pptp vpn is handy from work, and the bandwidth shaping works very well, i can nail my bandwidth with p2p and when anything more important needs bandwidth it gets throttled temporarily, very clever stuff :)

Have I ever steered you wrong in the past? ;) Its a great little distro, and you can not beat the price! I have played with quite a few of the router/firewall distos -- and this by far one of the best. It might have more features than some people need, etc.. if your looking for a very small footprint, etc.. then use freesco, etc.. Other than that - its got about anything you could think of, and if not - just install it yourself, its just running on fedora 2 core, etc..

Example - I do not like that dns caching thing they use, so I uninstall that and install BIND. I would also suggest you install webmin, which can be used to admin the machine as well... for anything else you install on it, or when their interface is lacking -- ie their samba controls are very limited, etc.. same for fetchmail (maildrop), etc.. and I like the DNS tools webmin, etc..

I use webmin on a different linux server, when ive put a bit more ram in I may put webmin on that too.

no rush though as the interface already covers everything i need it for, im just using this box for routing/shaping and firewall , no fileserving / ftp / http etc.

I like how it integrates MRTG into its interface stuff, i keep finding new cool stuff.

2 Questions ;)

1) how can i make my https webadmin server acessable from the outside without vpn ? Ive tried forwarding to port 81 and this doesnt seem to work.

2) on bandwidth shaping, where it asks for IP address , if i put 0.0.0.0 will that mean all ip adresses ?

Thanks :)

Sorry for the triple posts, it wont let me edit for some reason.

anotehr Q

3) is ther ea way (like in the netgear dg834 router) that you can tell the DHCP server to reserve specific ip adresses in its block, and assign them to dhcp requests from specific hardware mac adresses ?

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Wow, imagine you dump hundreds of hours into completing things and unlocking stuff and you lose it all. Back in the day when cheats were built into games, you could at least unlock things again that way without spending hundreds of hours again. But those days are long gone for some reason as no one builds cheats into games anymore. So it's even more painful that studio that's on its 6th installment **** it up so badly.
    • Spotify finally removes the disco ball app icon in the latest update by Ivan Jenic Image: Spotify Spotify has just released an update that removes its now infamous disco ball icon. The update reverts the app icon to the familiar flat green logo after weeks of mixed reactions online. The icon arrived on May 13 as part of the company's 20th anniversary celebration and was always intended to be temporary, though Spotify only confirmed that after the backlash started. The disco ball took the internet by storm, as the reception was split. A vocal group of users called it ugly and disorienting, with some iOS users noting that the 3D glowing effect made the app look like it was stuck mid-update. On the other end, the icon picked up a following of its own. Its retro, three-dimensional look immediately stood out against the flat, minimalist aesthetic that has dominated app design for years. It even started a small movement, spawning what people started calling "discomorphism," a mashup of disco and skeuomorphism. Other brands started posting disco ball versions of their own logos, probably in an effort to ride the wave of memes that flooded the internet during late May. Spotify has had a turbulent relationship with its user base lately. Besides the disco ball icon, which certainly wasn't appreciated by everyone, the company has also received backlash for its willingness to include AI-generated music on its platform. On May 17, Spotify promised the old icon would return “in a few weeks.” And now it looks like that time has finally arrived. So, whether you liked the disco ball or it made you uncomfortable, it’s now gone for good. The next time you update the Spotify app on your phone, the old, flat-design icon will return.
    • Playground Games confirms Forza Horizon 6 save wipe bug by Taras Buria Forza Horizon 6 was launched last month to critical acclaim (check out our review here), and it became a smash hit in an instant. Now, weeks into the launch, with die-hard fans clocking hundreds of hours, Forza Horizon 6 is facing a serious issue: save wipes. After multiple complaints on Reddit and social media, the studio issued a statement. The problem with missing saves came shortly after Playground Games promised the initial batch of gameplay tweaks and improvements. Unfortunately, there seems to be no temporary fixes for those affected by unexpected save wipes. However, the studio published a new support document with a few important steps users should try. First, affected gamers should open a support ticket immediately (go here to file one) so that the support team can try recovering the lost progress by reverting to an earlier save. Playground Games says this should be done the same day the issue occurs. Meanwhile, gamers are urged not to start new play sessions or create new saves. The studio also published a few things gamers should try to avoid to prevent potential progress loss: Ensure your Gaming Services app on PC or XBOX Series X|S console is fully up to date. On XBOX Series X|S consoles, disable Quick Resume for Forza Horizon 6: To disable Forza Horizon 6 from using Quick Resume, highlight the game box art anywhere in the console experience (Home, My Games & Apps, Pins, etc) and then press the Menu button, then go to Manage game and add-ons > Quick Resume settings > Disable Quick Resume. Ensure you are online when ‘quitting’ the game. Give your saved time to sync to the cloud before powering off or switching devices. Do not force quit the game during save screens. Do not power off the device during gameplay. Always "Quit" (console) or "Exit to desktop" (PC) once you've finished your play session, ensuring the save icon is not visible when you’re closing the game. Before turning off your console, shutting down your PC, or force-closing the Steam app, give your devices or clients at least a few minutes to ensure your latest progress has been synchronized with the cloud. This will reduce the risk of progress reversions as you switch between different platforms. XBOX Series X|S consoles, Steam, and the XBOX app on PC all include game save indicators that confirm your progress has been synced. You can read more about the bug in the official support document here. Forza Horizon 6 is currently available on PC (Steam and the Microsoft Store), Xbox Series X|S, and Game Pass. The game is also coming to PlayStation 5 later this year.
  • Recent Achievements

    • One Year In
      slackerzz earned a badge
      One Year In
    • One Year In
      highriskpaym earned a badge
      One Year In
    • One Month Later
      highriskpaym earned a badge
      One Month Later
    • Week One Done
      highriskpaym earned a badge
      Week One Done
    • Week One Done
      FBSPL earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      519
    2. 2
      PsYcHoKiLLa
      198
    3. 3
      +Edouard
      158
    4. 4
      Steven P.
      84
    5. 5
      ATLien_0
      75
  • Tell a friend

    Love Neowin? Tell a friend!