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
      Tails OS 4.15 released with updated Tor Browser
      by Paul Hill



      Tails OS 4.15 has been released today bringing with it updates for the Tor Browser, the Linux kernel and fixes for several issues including USB tethering not working with devices running iOS 14 or later. Luckily, there are no new issues introduced with this version of the privacy-oriented OS but it’s still affected by long-standing issues.

      According to the release notes, there are no new major changes in this update outside of updated software. The only new feature is that you now have the option to press “Don’t Show Again’ on the security notification that pops up when you attempt to run Tails on a virtual machine.

      This update does come with several critical software patches for things like the Tor Browser which is now on version 10.0.9 (based on Firefox 78.7), Thunderbird has been bumped to 78.6.0, and the Linux kernel now sits on version 5.9.15 bringing support for newer hardware. The new kernel update also addresses a bug that prevented iOS 14 devices from being used for tethering.

      To install Tails 4.15, you’ll either need to follow the guide to setting up a Tails USB to perform a clean install or you can upgrade an existing Tails install. When you’ve booted up your Tails 4.2 or above USB and connected to the internet, you will be offered the upgrade. If you choose to update, the new version will download and begin to install. If you would like to see what’s planned in future updates, check out the Tails roadmap.

    • By News Staff
      Network Automation Cookbook ($27.99 Value) - free download
      by Steven Parker

      Claim your complimentary eBook (worth $27.99) for free, before the offer expires tomorrow on 02/03.



      Network Automation Cookbook is designed to help system administrators, network engineers, and infrastructure automation engineers to centrally manage switches, routers, and other devices in their organization's network.

      This book will help you gain hands-on experience in automating enterprise networks and take you through core network automation techniques using the latest version of Ansible and Python.



      With the help of practical recipes, you'll learn how to build a network infrastructure that can be easily managed and updated as it scales through a large number of devices. You'll also cover topics related to security automation and get to grips with essential techniques to maintain network robustness. As you make progress, the book will show you how to automate networks on public cloud providers such as AWS, Google Cloud Platform, and Azure. Finally, you will get up and running with Ansible 2.9 and discover troubleshooting techniques and network automation best practices.

      By the end of this book, you'll be able to use Ansible to automate modern network devices and integrate third-party tools such as NAPALM, NetBox, and Batfish easily to build robust network automation solutions.

      This free offer expires on Feb 3.

      How to get it
      Please ensure you read the terms and conditions to claim this offer. Complete and verifiable information is required in order to receive this free offer. If you have previously made use of these free offers, you will not need to re-register. While supplies last!

      >> Network Automation Cookbook ($27.99 Value) - free download <<
      Offered by Packt Publishing, view their other free resources. Expires 02/03/21.

      Not for you?
      That's OK, there are other free eBooks on offer you can check out here.



      Home Gym Giveaway | Ultimate Gaming Giveaway (feat. PlayStation 5 & Xbox Series X) Ivacy VPN - 5 year subscription for just $1 per month NordVPN - 2 year subscription at up to 68% off Private Internet Access VPN - subscriptions at up to 71% off Unlocator VPN or SmartDNS - unblock Geoblock with 7-day free trial Neowin Store for our preferred partners. 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: A valid email address is required to fulfill your request. Complete and verifiable information is required in order to receive this offer. By submitting a request, your information is subject to TradePub.com's Privacy Policy.

    • 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.