LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-18-2021, 07:10 PM   #1
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,140

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
How to find upstream gateway?


https://gitlab.com/jmgibson1981/scri.../server/router

Been working on this script for dual wan. I had tried OPNSense but that failed out bad on me. I think I've got this working quite well but I have one issue.

Lines 107 - 111 require manual entry. Is there a way I can extract the upstream gateway ip for these or are they stuck being a manual affair? I can get it easy with tracert on Windows but that does me very little good on a linux machine lol.

*EDIT* Replaced link with gitlab instead of a paste.

Last edited by jmgibson1981; 04-18-2021 at 07:40 PM.
 
Old 04-19-2021, 10:15 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,334

Rep: Reputation: Disabled
Quote:
Originally Posted by jmgibson1981 View Post
I can get it easy with tracert on Windows but that does me very little good on a linux machine lol.
How about traceroute? Or tracepath? Or even ping -t 1 <random_internet_host>?
 
Old 04-19-2021, 10:54 AM   #3
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,140

Original Poster
Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Apologies. Forgot I had made this thread and didn't mark it solved. You are correct. In my testing for the specific port > specific wan I found tcptraceroute and was trying to verify my ports going the right way. They did not. But I much appreciate it. I had tried ping but it just showed my target, nothing in between.

At this point while I have my script mostly working it's been shelved for now. I'm sure my hardware was strong enough for a home lan but I was using https://www.amazon.com/gp/product/B0...?ie=UTF8&psc=1 . They do work but I'm fairly certain they are where my latency issues are. I removed my debian router and just plugged each wan into it's own router and doing the dns / dhcp on my server. My latency has never been better. I'm talking from 2k average through Debian router vs 50-60ms with a real router. I may try again with a proper pcix dual gigabit port card or something in the future. For now though I'm rolling quite nicely.

Thank you again for your answer.
 
  


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
upstream problems nubela Linux - Networking 3 12-12-2004 08:38 PM
Upstream Shapping qtgeo *BSD 2 11-08-2004 01:53 PM
ADSL upstream problems. marvin_robot Linux - Networking 1 03-08-2004 06:16 AM
SuSE 9.0 Wireless & Ethernet connect but no upstream puyan909 Linux - Wireless Networking 1 02-20-2004 03:23 PM
Upstream/Downstream stats jeucken Linux - Networking 4 01-06-2003 02:28 PM

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

All times are GMT -5. The time now is 09:09 PM.

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