Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [gateway]

The tag has no usage guidance.

0
votes
0answers
46 views

How to determine gateway address in a shared connection?

Suppose you have two computers, A and B, both running Ubuntu 16.04. Then you connect them with an ethernet cable and share the connection from A to B, using network manager with the option "Shared ...
0
votes
1answer
29 views

How can I find out what my default gateway should be?

I have a linux (RHEL 7) server on a network and the default gateway is set incorrectly. How can I find out what the default gateway should be, without asking a Network Administrator?
0
votes
1answer
19 views

OpenVPN does not work with Gateway, but does with bridge

i want use openvpn on Linux Mint. When i tries the VPN connection (i am client) i writes these commands : sudo openvpn --config file.tcp.ovpn then my authorization Enter Auth Username: user_xy ...
1
vote
0answers
45 views

OpenVPN bridge gateway stops all traffic

I am not sure if this is a linux or windows issue. I have openvpn set up with a bridge interface that includes tap0 and eth0. I have my client machine (win10) getting its IP through my dhcp server. ...
1
vote
0answers
19 views

Routing Issue concerning VPN Gateway

I am using a raspberry with the newest stretch version and facing a routing issue. My network: LAN: 192.168.178.0/24 Subnet Mask 255.255.255.0 Default eth0 Gateway 192.168.178.1 (this network is ...
-1
votes
1answer
39 views

How to forbid my PC in LAN to make DNS queries? (in a PC -> VPN gateway scenario)

scenario: i have 2 pc's that are connected to each other over ethernet in a lan and one of the pc's is configured as a gateway that tunnels the traffic of the other pc over to a vpn service. ...
0
votes
1answer
34 views

system get wrong gateway when bonding

I have a physical system with Centos 6 as OS. In eth0 I set IP, gateway and netmask as below and the physical port is attached to a switch port that its VLAN is 12. DEVICE=eth0 TYPE=Ethernet ...
0
votes
1answer
91 views

Routing with two different gateways

I have the following problem. I cant ping 8.8.4.4 ping -I ens192 8.8.4.4 PING 8.8.4.4 (8.8.4.4) from 192.168.4.44 ens192: 56(84) bytes of data. ^C --- 8.8.4.4 ping statistics --- 2 packets ...
0
votes
1answer
62 views

Change default gateway & assigned IP via script

I need some pointing in the right direction as I've tried a lot of different things over the past few days without success. I'm new to using bash and linux in general. I'm trying to detect when the ...
0
votes
1answer
112 views

UFW allow rules not working?

I have a cluster configuration with one machine that functions as a gateway (call it master) and several machines that only have private IP addresses (call them s01 to s09). I recently installed ufw ...
0
votes
1answer
47 views

SSH through a gateway that needs a proxy to access final destination

I have to set up an ssh/sftp connection which needs a certain configuration, and I've been looking around but didn't find an answer. I'm not sure it's even possible without some work around. I have 4 ...
0
votes
1answer
49 views

Device has no access to gateway, but gateway is visibile/pingable

I have on my home LAN network my home router set up as gateway and few clients. One client (orangepipc) works also like DNS resolver with installed PiHole. on the gateway(192.168.11.1) is DHCP server, ...
1
vote
2answers
844 views

How to route to a gateway on different subnet? [closed]

My network is on 10.3.4.x/24, with my router on IP 10.3.4.254. I need to ssh access my server on IP 10.3.4.100 but when I set up the server I forgot that I restricted ssh access to 192.168.x.x IPs ...
0
votes
0answers
160 views

Login page is not reachable with arch linux

I currently laying in a hospital and there is only wi-fi available over a hotspot, I guess it's a captive portal. My problem is that I can't reach the login page, where I can enter my voucher for the ...
0
votes
0answers
22 views

How to setup a local gateway

What I want to accomplish I would like to setup three virtual machines connected through a virtualbox internal network. Each machine has a different role: there is server, a client and a middlebox. I ...
0
votes
0answers
796 views

How to set default gateway after boot

I have setup raspberrypi zero w running raspbian as wifi router. I have PPPoE broadband connection. After setting up pppoeconf , hostapd & dnsmasq. I get this routing table :: route -n Kernel IP ...
0
votes
0answers
18 views

Why does Shorewall create default route with metric of 0?

I noticed that my routing table has 2 default gateways: Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 8.9.8.1 0.0.0.0 UG 0 0 0 ...
0
votes
0answers
140 views

How to set up one OpenVPN client as gateway for others?

I try to set up my OpenVPN network and now I have: 10.9.1.1 - server (manjaro linux) 10.9.1.8 - client (ubuntu 16.04) 10.9.1.12 - client I want to set 10.9.1.8 as gateway for 10.9.1.12 client. How ...
0
votes
0answers
281 views

How to get gateway information for both interface as gateway information shows as 0.0.0.0

I have two interfaces with me as eth0 and wwan0. My both the interfaces have internet connectivity. But in my use case, I can plug and unplug any interface from my system. Ideally as soon I plug it ...
0
votes
1answer
257 views

On OS X, how to grant network 192.168.3.* access to network 192.168.1.*?

I connect to Wifi with OS X, it is network 192.168.1.*. Then I also connect a second computer to Mac's ethernet port, which is configured as network 192.168.3.*. I don't need the eth-box to access ...
1
vote
0answers
63 views

Connect 2 networks through a Linux gateway

I am moving my first steps in Linux networking and I'm a bit stuck on this. I have 2 private networks 10.0.1.0/24 and 10.0.3.0/24 And I want to be able to ping the machines from one network to ...
0
votes
1answer
326 views

Get internet on linux pc using windows pc as gateway

I have a linux pc which is on a network that does not have internet access. There I have also a windows pc which is on a network that have internet access. The 2 networks are visible one to each other ...
0
votes
0answers
696 views

Error 502 bad gateway

I can't install anything with apt... I just installed kali-linux 2017.3...after updating and upgrading 700MB files:The last lines of the output of apt upgrade: Err:2 http://http.kali.org/kali kali-...
1
vote
1answer
56 views

Route in Linux with 2 card 2 gateways

This is a new setup: The file server can ping the 10.5.4.1 with: route add 10.5.4.0 netmask 255.255.252.0 gw 10.5.8.2 But 10.5.4.1 cannot ping 10.5.8.10. It's important to know that in the gateway ...
1
vote
1answer
352 views

Problem with gateway server configuration on Centos 7

I'm trying to configure a host with Centos 7 and one network interface (eth0) to be a gateway. The problem is that Gateway can forward package, receive the answer but it fails with sending response ...
2
votes
0answers
156 views

How to ping the GW of a subnet?

There is a variable: SUBNET="10.1.1.0/24" I know that 10.1.1.1 is the GW in this subnet, always the first host. Q: But how can I automate to ping this GW once? There could be different subnets, ...
1
vote
1answer
106 views

How to get the internet working on Raspberry pi connected to a PC through an ethernet cable?

I am trying the following setup: Raspberry pi (eth0) <--> (eth0) laptop (wlan0) <--> Internet (The raspberry has a Raspbian.). Left-hand side LAN uses addresses 192.168.0.*. I am currently ...
0
votes
1answer
1k views

What is difference between the gateway in ifcfg-ens192 and the one print by route

when i cat the file /etc/sysconfig/network-scripts/ifcfg-ens192 a line showing the gateway for ens192: GATEWAY=10.2.2.2 but when i run netstat -r or route Destination Gateway Genmask ...
0
votes
2answers
59 views

How to set up a ping task on Antergos/Arch Linux?

I want to set up a continuous task that pings a gateway every second. How would I go about it? The most performance friendly solution would be best. No output needed, I just want it to ping.
4
votes
1answer
88 views

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) ...
2
votes
0answers
5k views

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 ...
3
votes
0answers
427 views

Linux gateway: how to route LAN-originated NATed connections through OpenVPN tunnel?

I’ve run a SOHO domain for many years, including a Linux-based firewall/gateway with SNAT for internal clients, and offers a variety of services on the WAN which include port forwarding (DNAT). The ...
0
votes
1answer
396 views

Redirecting subnet traffic to a different gateway

I have a Debian Jessie box at 192.168.1.5 connected to the router (at 192.168.1.1) running an OpenVPN client (it's actually a Pi using this setup. The only part different is that the Pi's eth0 IP is ...
6
votes
1answer
2k views

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 ...
10
votes
2answers
25k views

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 ...
0
votes
1answer
1k views

SIOCADDRT error: no such process

I get this error while configuring a network in Virtual Box with Linux. I have 2 gateways (192.168.10.5 and 192.168.20.5) that are connected to 2 hosts. The first first host has address 10.0.10.100 ...
1
vote
1answer
749 views

Default value of Gateway in route o/p

The output of the route command is coming as below. This is in a virtual machine. My question is that why the value of Gateway for default destination coming as "gateway" and not as the IP Address of ...
1
vote
0answers
28 views

Configuring gateway for two interfaces [duplicate]

I have a CentOS machine with two network interfaces, one that I want connected to the internet and one that I want connected to an internal network. I am trying to make both interfaces work, but I ...
1
vote
1answer
395 views

Create tunnel from Host to Gateway

I have configured a network map in Virtual Box. I have one VM that acts as a host on a network. I want this host to access a private network that is located behind a gateway, through a tunnel. The ...
0
votes
1answer
165 views

Forwarding IP camera video through bridge

I have a single board computer running OpenWRT. The computer has two network interfaces: eth0 - ethernet RJ45 jack wwan0 - attached wireless card I have an IP camera plugged into the eth0 (the RJ45 ...
1
vote
1answer
563 views

Centos 7 running on VM how to set default gateway - ping google.com fails

I am using Centos 7 running in Oracle VM VirtualBox Manager. I wanted my windows (host) to be able to ping Centos 7 (guest) so I changed the network settings in VM to use host-only network adapter ...
1
vote
0answers
76 views

NAT and remember the original IP address?

Is it possible to do NAT and remember the original IP address? For example, on my gateway, I might want to NAT all outgoing IP traffic to itself, and then write some server software to intercept the ...
3
votes
1answer
68 views

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 ...
3
votes
3answers
2k views

Can't change the default gateway with static IP

I have this server for a while, and was present on other questions. A while ago, I've changed the network and the gateway IP was changed too. Since then, there is no internet on this machine. I need ...
0
votes
1answer
39 views

do I need to add 2 gateway to ping the inside network?

thanks in advance I have 2 networks and one debian gateway network 1 (eth0) 192.168.1.4 network 2 (eth1) 10.20.10.4 if I want ping from 10.... to 192.... do I need to add both gateways to the pcs ? ...
1
vote
0answers
104 views

Two gateways in the same VLAN

I have a server running on a network: 10.0.0.0/24 This Linux is running at ip address: 10.0.0.58 There are two good gateways in this network: 10.0.0.10 - That uses the provider number 1 and 10.0.0....
1
vote
0answers
513 views

How to block access to “private” host-only network from VirtualBox nat interface (separate host-only networks)?

Scenario: 1 VirtualBox host with many vms. Different host-only networks are configured for different vm categories: Some vms are "private", others are "standard" vms. Most of these vms, including some ...
8
votes
4answers
113k views

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 ...
1
vote
1answer
295 views

Configuring OpenBSD's PF as a router

I am running OpenBSD 4.4, I copied the template from https://markshroyer.com/guides/router/ch07.html for /etc/pf.conf and edited it to match my network. When I start it I get syntax errors on only ...
1
vote
0answers
94 views

TCP/IP routes when using multiple DHCP servers

I have connected a computer (running Debian Wheezy) to two different DHCP servers (routers) through a cable and through a wifi device. If I look at the routes with route, I get the following result ...