Using a /32 network on Debian 8u3


Recommended Posts

Inertia

I have a Debian 8u3 virtual machine (web server running plesk not that that is relevant) hosted on a dedicate server at a DC

 

the DC give you single IP addresses rather than IPv4 sub nets, and they ask you to assign them to a mac address in your control panel and then assign that mac address on the VM Host to the guest, which I have done.

 

You then configure the IP address on the guest, for example (not actual IP btw) 176.48.3.78

 

They then tell you to configure a sub net mask of 255.255.255.255 (/32) and use your servers IP address but with .1 on the end as the gateway.  

Lets say my servers address is 176.48.15.78 (again not the actual IP, just an example) then the default gateway to be used on the VM should be 176.48.15.1

 

Debian isn't happy with this at all during setup ,how can it route via a default gateway not even on the same sub net as itself.

If I configure it with the net mask 255.255.0.0 it works, however all IP's inside of 176.48.15 will not be able to route to it, not ideal at all but it worked.

 

The problem is I have upgraded my dedicated server int he DC (and have 8 days to migrate everything) and its IP address is now (another example) completely different 189.65.48.30 so the default gateway on the Debian VM needs to be 89.65.48.1

There is no way to shorten the sub net mask to allow Debian to route now.

 

If I configure in windows an IP address a net mask of 255.255.255.255 and a gateway nowhere even close to the IP address it gives a warning, but if I dismiss this warning it works and routes as online.net suggest it will.

 

In Debian if I edit /etc/network/interfaces in a similar way and save it, then reboot the server, it cannot ping out or accept any traffic in at all.

 

How can I make it route like window sis able to ??

 

Thanks.

Mark

Link to post
Share on other sites
Inertia

Thanks, I will give it a go!

 

Link to post
Share on other sites
Inertia

Think I found a way thanks to your link :-)

Edited by Inertia
  • Like 1
Link to post
Share on other sites
Inertia

Still struggling on this, I thought I had cracked it because my web server now works fine pages load, email clients can connect, everything works as expected.

 

until the server tries to connect outwards itself, any time plesk tries to update, or osticket tries to connect to an external email service, or anything like that it cannot

 

I cant even ping from the console

 

here's my interfaces config ....

 

Capture.png

 

Ive blanked out bits for security reasons.

 

Here is how the DC tell you to configure it ...

 

https://documentation.online.net/en/dedicated-server/network/ip-failover/debian-ubuntu

 

I tried adding various routes and couldn't cure the problem.  can anyone point me the right way ?

 

Thanks!

Link to post
Share on other sites
Inertia

Some more screens ...

 

Pings out go unanswered

 

capture_2.png

 

Web pages on that /32 IP load fine ...

 

plesk_screen.png

 

 

Link to post
Share on other sites
Inertia

So I made progress

 

progress.png

 

 

However I can only communicate with traffic on 8.0.0.1 to 8.254.254.254

 

Do i have to manually add routes for every subnet outside of the one asigned to eth0 ? 

 

Also is the re a way to have these routes saved so they remain after a reboot ?

 

Thanks

Link to post
Share on other sites
Inertia

I figured it out

 

ip route del default (remove the deult rule)

 

ip route add default via 62.xxx.xxx.1 src 163.xxx.xxx.xxx (add it back but with the failover IP as source)

 

I added those 2 lines to /etc/rc.local

 

fixed.png

 

wow i jumped through hoops to figure that out, quite a learning curve.  I now know more about Linux routing than i ever did

Edited by Inertia
  • Like 1
Link to post
Share on other sites
Mindovermaster

Grats, man! :laugh:

  • Like 1
Link to post
Share on other sites
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By zikalify
      Linux Mint 20.1 ISOs have been approved for release [Update]
      by Paul Hill



      Following the beta release of Linux Mint 20.1 in mid-December, the stable release has been finalised and approved for release according to the Linux Mint website. While approved, the Linux Mint project has not yet published a blog post about the release or the ISOs but they are expected imminently.

      For those already running Linux Mint 20, the upgrade will be made available via the Update Manager but upgrading won’t be necessary if you’re happy with your existing setup. Like Linux Mint 20, Linux Mint 20.1 will receive security updates until 2025 as they’re both based on Ubuntu 20.04 LTS, however, it will come with desktop improvements and new apps developed by the Linux Mint project.

      Some of the new apps that will be available include Web Apps which lets your turn your favourite sites into web apps accessible from the app menu and an IPTV program called Hypnotix that’ll come pre-loaded with several freely available channels. For Chromium fans, the Mint team has decided to begin compiling the browser itself without a dependence on Ubuntu’s Snap packaging software.

      In a blog post from the end of December, Linux Mint’s head Clem Lefebvre said that there were still some issues that they wanted to work out before the release and couldn’t give an exact release date. Linux Mint is not known for giving exact release dates so there’s nothing out of the ordinary this time around. In the post, Lefebvre also stated that the team was considering an extra ISO image with the Linux 5.8 kernel to address some AMD Ryzen 5 and Ryzen 7 issues but this extra ISO has not yet shown up on the Mint website.

      Update: Linux Mint 20.1 has now been released and can be downloaded from linuxmint.com.

    • By News Staff
      Save 95% off this Complete Computer Networking eBook & Video Course Bundle
      by Steven Parker

      Today's highlighted deal comes via our Online Courses section of the Neowin Deals store where you can save 95% off this Complete Computer Networking eBook & Video Course Bundle. Attain systems efficiency & security with 14+ hours of video content and 5 comprehensive e books on DevOps, Programming, AWS, CCNA, and more.



      This bundle consists of the following courses:

      The Ultimate Kubernetes Bootcamp by School of Devops [Video]
      Prepare for the CKA Exam — Master Container Orchestration with Kubernetes One Step at a Time AWS Certified Advanced Networking: Specialty Exam Guide [eBook]
      Build Your Knowledge & Technical Expertise as an AWS-Certified Networking Specialist Hands-On Network Programming with C [eBook]
      Learn Socket Programming in C & Write Secure and Optimized Network Codes Analyzing Network Traffic with Wireshark 2.6 [Video]
      Delve Into Network Traffic & Analyze Individual Protocol Data Units Active Directory Administration Cookbook [eBook]
      Actionable, Proven Solutions to Identity Management & Authentication on Servers and in the Cloud Hands-On PowerShell for Active Directory [Video]
      Use PowerShell for Active Directory to Eliminate Manual Labor with Quick Automation Tasks & Functions Effective Jenkins: Getting Started with Continuous Integration [Video]
      Learn Continuous Integration, Automate Your Jenkins Projects & Get Continuous Feedback for Your Upstream/Downstream Projects Hands-On Kubernetes Networking [Video]
      Unravel the Mystery of Networking in Your Kubernetes Cluster in a Pragmatic Manner CCNA Cyber Ops SECOPS: Certification Guide 210-255 [eBook]
      Develop Your Cybersecurity Knowledge to Obtain CyberOps Certification Hands-On Linux for Architects [eBook]
      Design & Implement Linux-Based IT Solutions Good to know
      Updates included Length of time users can access after purchase: lifetime Redemption deadline: redeem your code within 30 days of purchase For a full description, specs, and author info please click here.

      Here's the deal:
      This Complete Computer Networking eBook & Video Course Bundle normally costs* $746 but it can be yours for just $29.99 for a limited time, that's a saving of $716.01 (95%) off the price.

      >> Get this deal, or learn more about it here <<
      See all Online Courses on offer. This is a time limited deal.
      Get $1 credit for every $25 spent · Give $10, Get $10 · 10% off for first-time buyers.

      Not for you?
      If this offer doesn't interest you, why not check out the following offers:



      The Win Your Dream 2020 Tesla Model 3 Giveaway Ivacy VPN - 5 year subscription for just $0.99 per month NordVPN - 2 year subscription at up to 68% off +3 months for free! Private Internet Access VPN - subscriptions at up to 71% off Unlocator VPN or SmartDNS - unblock Geoblock with 7-day free trial Subscribe to Neowin - for $14 a year, or $28 a year for Ad-Free experience Disable Sponsored posts · Neowin Deals · Free eBooks · Neowin Store

      Disclosure: This is a StackCommerce deal or giveaway in partnership with Neowin; an account at StackCommerce is required to participate in any deals or giveaways. For a full description of StackCommerce's privacy guidelines, go here. Neowin benefits from shared revenue of each sale made through our branded deals site, and it all goes toward the running costs.

    • By News Staff
      Pay What You Want for this Complete Linux eBook Bundle
      by Steven Parker

      Today's highlighted offer comes via our Online Courses section of the Neowin Deals store, where for a limited time you can Pay What You Want for the Complete Linux eBook Bundle. The 4-book guide to programming more powerfully and efficiently with Linux.



      How does it work?
      With the Pay What You Want bundles, you can get something incredible for as little as you want to pay. And if you beat the average price, you’ll receive the fully upgraded bundle! Included in this Pay What You Want deal, are the following courses:

      Pay What You Want (as little as $1) for the unlocked eBook:

      Mastering Embedded Linux Programming, Second Edition
      Master the Techniques Needed to Build Great, Efficient Embedded Devices On Linux

      ... and unlock the following eBooks with a bid over the average price:

      Mastering Linux Security & Hardening
      A Comprehensive Guide to Preventing Your Linux System From Getting Compromised

      Linux Shell Scripting Cookbook, Third Edition
      Do Amazing Things with the Linux Shell

      Mastering Linux Shell Scripting, Second Edition
      Master the Complexities of Bash Shell Scripting

      Here's the deal:
      The bundle represents an overall retail value of $160. Pay What You Want for the unlocked courses (as little as $1). Bid the average price or over and you'll take home the entire bundle. Qualify for the giveaway!
      Beat the Leader's price and get entered into the epic giveaway, plus get featured on the leaderboard!

      >> Pay What You Want for this Complete Linux eBook Bundle <<
      See other Pay What You Want deals. This is a time-limited deal.
      Get $1 credit for every $25 spent · Give $10, Get $10 · 10% off for first-time buyers.

      Not for you?
      If this offer doesn't interest you, why not check out the following offers:



      The Win Your Dream 2020 Tesla Model 3 Giveaway Ivacy VPN - 5 year subscription for just $0.99 per month NordVPN - 2 year subscription at up to 68% off +3 months for free! Private Internet Access VPN - subscriptions at up to 71% off Unlocator VPN or SmartDNS - unblock Geoblock with 7-day free trial Subscribe to Neowin - for $14 a year, or $28 a year for Ad-Free experience Disable Sponsored posts · Neowin Deals · Free eBooks · Neowin Store

      Disclosure: This is a StackCommerce deal or giveaway in partnership with Neowin; an account at StackCommerce is required to participate in any deals or giveaways. For a full description of StackCommerce's privacy guidelines, go here. Neowin benefits from shared revenue of each sale made through our branded deals site, and it all goes toward the running costs.

    • By zikalify
      Linux Mint 20.1 'Ulyssa' beta launches with new programs
      by Paul Hill



      The Linux Mint project has just released the beta for Linux Mint 20.1. The new beta is available in the Cinnamon, MATE, and Xfce flavours of Linux Mint and aside from desktop improvements, share the same set of new features.

      Neowin has covered some of Linux Mint’s development updates in recent months and the work that went in then has landed in a more mature form in this beta. Highlights include a new Web Apps tool that lets you turn your favourite sites into web apps accessible from the app menu and IPTV program called Hypnotix has been created and items can be marked as favourites in the file manager on Cinnamon.

      Another change in Linux Mint 20.1, which has been known for quite a while now, is the inclusion of Chromium in the repositories. Chromium had previously been removed from the Linux Mint repositories because the maintainers didn’t like that it had Snap dependencies. The Chromium that is now included is compiled directly by the Mint team and updates will be released in a timely manner.

      As with the other releases in this series, Linux Mint 20.1 will continue to get updates until 2025. Those running Linux Mint 20 will be able to upgrade in a pain-free manner when Linux Mint 20.1 is stable because the base packages will remain the same. Those who choose to download the beta today won’t have to reinstall when the stable version comes out in a few weeks, instead, you just need to make sure you install available updates.

      You can find the three Linux Mint 20.1 beta flavours over on the Evowise mirror which should provide decent download speeds no matter where you are in the world.

    • By zikalify
      Firefox 84 launches with support for Apple Silicon CPUs
      by Paul Hill



      Mozilla has released Firefox 84 with native support for Apple Silicon CPUs. Firefox 83, by contrast, was released just after Apple’s CPU announcement and had to run using Apple’s Rosetta 2 emulation software on newer Macs.

      Aside from support for Apple Silicon CPUs, it’s worth mentioning again that Firefox 84 is set to be the last version of Firefox that will include support for Adobe Flash. The plug-in, which has largely been supplanted by HTML5 and Unity, was first released in 1996 and sometimes acted as a security weak point.

      Firefox 84 is a big update in terms of Mozilla’s rollout of WebRender, its Servo rendering architecture. The rollout has been extended to devices running macOS Big Sur, Windows devices with Intel Gen 6 GPUs, and Intel laptops running Windows 7 and 8. Linux users with the GNOME desktop with X11 will also get WebRender switched on in this update but it’s unclear when users of other desktop environments and of Wayland will get the feature switched on.

      The final point worth mentioning also pertains to Linux; Mozilla says it is now using “more modern techniques” for allocating shared memory on Linux which improves overall performance and increases compatibility with Docker.

      Head over to the Firefox website now to grab a fresh copy of the browser or wait for your existing installation to upgrade itself. You can also force the upgrade by going to the Menu button > Help > About Firefox where you should see the update download and eventually offer to restart the browser.