Traffic forwarding for SSH over different interface

Κλειστό Αναρτήθηκε Πριν 2 χρόνια Πληρώθηκε κατά την παράδοση
Κλειστό Πληρώθηκε κατά την παράδοση

Hi!

I have an ubuntu server running on my raspberry pi 400. There are 4 Interfaces connected on it.

Output of route command:

eth1 [login to view URL] metric: 0

eth2 [login to view URL] metric: 0

eth3 [login to view URL] metric: 0

wifi0 [login to view URL] metric: 400

The interfaces eth1, eth2, eth3 are mobile 4g routers with cellular sim card conntected to the internet. With an own written script i switch the main internet traffic between this eth 1/2/3 interfaces in an loop. For this i run in circle the command "sudo route add default gw eth1" for example. Because this setup i cant connect to one of this ethernet interfaces because the IP adresses on them are dynamic and chaning each time, so i also setup an wifi0 interface while my home internet has an paid static IPv4 address wich i could connect anytime over ssh to my raspi. The problem is just that this is just possible when the wifi0 interface is set as main traffic interface on top of the list what i want prevent. I want this wifi0 interface just work as my ssh connection point to reach my raspi from public internet. The eth interfaces shouldnt be interrupted by wifi0, and wifi0 never go to handle main traffic or else. So as far as i could research on stackoverflow on my own, is that i would need an forwarding rule to say ubuntu "all traffic (incoming / outgoing) with port 22 should be forwarded to wifi0. My goal is to connect to my ubuntu over ssh over this wifi0 static ip adress while its on metric 400, and the main traffic is going over this eth interfaces. Hoping to get an permanently solution to setup this routing, or an command to do it temporary wich i would then put in an script and run it on bootup of system. To be sure its working i will not award anyone before i check your solution on tested on my local server. As its working perfectly as im expecting you get awared and paid out.

Thanks!

Linux Διαχείριση Δικτύου Debian Ubuntu

Ταυτότητα Εργασίας: #32608236

Σχετικά με την εργασία

6 προτάσεις Απομακρυσμένη εργασία Ενεργό Πριν 2 χρόνια

6 freelancers κάνουν προσφορές κατά μέσο όρο €38 για αυτή τη δουλειά

ExpertNetworkEng

Hello Dear, I am an Expert Network Engineer and I am working as Professor and Expert Network Engineer at a Multinational ISP. I have great hands-on experience for more than 15 years in various network technologies. Περισσότερα

€20 EUR σε 1 μέρα
(124 Αξιολογήσεις)
5.6
mohitcloudoserv

Hey, I can help you right away!

€25 EUR σε 1 μέρα
(18 Αξιολογήσεις)
4.3
matejmeleg

Hello, I am experienced Cisco CCNP network engineer and I would like to help you with your request. Kind regards, Matej

€20 EUR σε 2 μέρες
(13 Αξιολογήσεις)
3.9
kingch91

Hi, we are a cross-disciplinary team of solution architects & engineers having extensive experience to design, deliver and monitor ICT solutions which includes all services remotely. Following are the services that we Περισσότερα

€30 EUR σε 2 μέρες
(4 Αξιολογήσεις)
3.0
Vurunkatte

Hi, I can write you a system service reachable over wifi0, which controls and monitor ip-tables rules, and switches interfaces as you choose. Msg me if you are interested Regards

€100 EUR σε 2 μέρες
(0 Αξιολογήσεις)
0.0