Questions tagged [gateway]

127 questions
28
votes
2 answers

Is it possible to have multiple default gateways for outbound connections?

I would like to have multiple NICs (eth0 and wlan0) in the same subnet and to serve as a backup for the applications on the host if one of the NICs fail. For this reason I have created an additional routing table. This is how /etc/network/interfaces…
rosix
  • 973
  • 2
  • 9
  • 11
22
votes
4 answers

How to set the Default gateway

I'm trying to configure the network interface on embedded linux using ifconfig: ifconfig eth0 192.168.0.101 netmask 255.255.255.0 but I don't know how to add the default gateway as an ifconfig parameter, Any Ideas?
Abdessamad Doughri
  • 331
  • 1
  • 2
  • 5
18
votes
2 answers

Proxy (nginx) shows a Bad gateway error

I have a service (docker registry) that runs on port 5000, I have installed nginx to redirect http request from 8080 to 5000. If I make a curl to localhost:5000 it works, but when I make a curl to localhost:8080 I get a Bad gateway error. nginx…
stecog
  • 2,221
  • 10
  • 29
  • 39
12
votes
1 answer

Why does Ubuntu resolve the name `_gateway` to the default gateway instead of `gateway`?

When I run the route command, the default gateway resolves to _gateway. I can ping _gateway, which resolves to my default-gateway and replies as such. Why does Ubuntu 18.04 prepend _ to gateway?
Lucas Goodding
  • 121
  • 1
  • 1
  • 4
8
votes
2 answers

How to blindly forward all packets from one interface to another?

I would like to forward all L3 packets received on eth0 to another interface lets call m0 (m0 is a custom interface tied into custom hardware with a distinct L2 framing mechanism) as well as the reverse m0->eth0. A sample implementation for m0 could…
gutelfuldead
  • 80
  • 1
  • 6
8
votes
1 answer

Static IP address without a gateway

Simple setup here. I have a machine with multiple network interfaces, two for example - eth0 and eth1. eth0 has a static address and has a default gateway assigned. eth1 has a static address and will not have a gateway on that interface's network…
111---
  • 4,424
  • 3
  • 27
  • 50
7
votes
3 answers

Linux Replacement of RD Gateway

Is there a way to replace RDS Gateway with some sort of linux based proxy. I know there some ways to do it with ssh/port forwarding, but this is to replace a current RDS Gateway our users utilize for remote access (~300 users). I need to support…
person
  • 207
  • 2
  • 6
4
votes
1 answer

Port forwarding does not work using different gateway

Let me try to explain my home network setup: ┌────────────────────┐ │ Internet │ │ Public IP: 1.2.3.4 │ └──────────┬─────────┘ │ ┌──────────────────┴─────────────────┐ │ …
4
votes
0 answers

I'm unable to create a static ip route. error says: RTNETLINK answers: Network is unreachable

Im trying to setup a test network with VMs to practice how static routing works, so what I thought to do is to setup two internal networks and one box with two interfaces to work as a router, here's the setup with the IPs: I configured the static…
VaTo
  • 3,071
  • 3
  • 18
  • 47
4
votes
2 answers

SSH Gateway in ~/.ssh/config

What is the difference between the following? Host foo ProxyCommand ssh example.com -- /usr/bin/nc %h %p 2> /dev/null and Host foo ProxyCommand ssh -W %h:%p example.com Which one should I prefer when? Is either of them faster or more…
user541686
  • 3,033
  • 5
  • 28
  • 43
3
votes
1 answer

Unexpected Route Selection

I'm running BGP using FRR on Debian Linux on several machines. My question might end up having to do with something in the FRR/BGP configuration but I'm trying to understand at a more basic level why a particular IPv6 route selection is happening…
bgp
  • 143
  • 6
3
votes
1 answer

How to have two different gateways on two different bridges in Proxmox VE

We have two different network interfaces eno1 and eno2 (eno3 and eno4 are not connected) and we have one bridge vmbr0 we want to add another bridge vmbr1 and we want to set two different gateways on these bridges. Currently vmbr0's gateway is set…
Erfan Azhdari
  • 216
  • 2
  • 7
3
votes
1 answer

Two default gateways with different metric on CentOS 7 box - how?

I'm begging for help here. Been spending hours researching how to solve what seemed like a simple problem: On a CentOS 7.6 host with two network interfaces on two different networks, how to have two default gateways with a set metric to favour one…
Alain
  • 31
  • 1
  • 2
3
votes
1 answer

Configure two Routers on one Device

I am building a router with a RPi (Raspbian). It has 3 network interfaces: eth0: Connected to the Internet (IP/Gateway from DHCP) wlan0, wlan1: local WLAN interfaces (each serving its own SSID as AP) Moreover a have a VPN connection tun0 to a…
Lukas
  • 33
  • 3
3
votes
1 answer

Does the Linux kernel support changing gateways based on state of IP outside your network?

I have 2 different home internet connections and I have an IP from each router's LAN (such as 10.0.0.2/24 and 10.0.1.2/24 with each ISP's routers being the .1) configured on my private server, which then distributes internet access to my…
Railander
  • 33
  • 3
1
2 3
8 9