Questions tagged [gateway]

A gateway is a network node used in telecommunications that connects two networks with different transmission protocols together.

Filter by
Sorted by
Tagged with
36 votes
9 answers
158k views

Nginx + php-fpm "504 Gateway Time-out" error with almost zero load (on a test-server)

After debugging for 6-hours - I am giving this up :| We have a nginx+php-fpm+mysql in LAN with almost 100 wordpress (created and used by different designers/developers all working on test wordpres ...
rahul286's user avatar
  • 1,657
19 votes
3 answers
32k views

Routing from docker containers using a different physical network interface and default gateway

Background Information I have a server with two network interfaces that is running Docker. Docker, like some virtualization tools, creates a Linux bridge interface called docker0. This interface is ...
user avatar
17 votes
7 answers
57k views

What's the difference between a gateway and a router?

Here we can see the router is 67.23.27.187(first hop), but the gateway is 67.23.27.1. What's the difference between a gateway and a router? How does my computer know the IP of the router when only the ...
user avatar
15 votes
7 answers
80k views

What is an edge server / router / device?

What is an edge server? We see some references to them, but we never see a definition.
user avatar
4 votes
3 answers
40k views

Routing decision when there are two default gateways on windows

My windows machine has two network cards, both have default gateways. How does windows determine which gateway should it access when sending a packet to a remote endpoint? More precisely, here's my ...
user avatar
4 votes
3 answers
2k views

two gateways / two providers with different ips

I want to route packets coming in on eth0 back over eth0 and the ones coming in to eth1 back over eth1. I don't care which gateway is used for outgoing connections. If i just enter two gateways in /...
Jure1873's user avatar
  • 3,732
4 votes
1 answer
7k views

load balancing multiple gateway using route and iptables

under linux, how do I load balancing multiple gateway by using route, note that I have one input interface lets say eth0, and one output interface lets say eth1. eth1 can connect to multiple IP ...
uray's user avatar
  • 255
3 votes
1 answer
3k views

DNS settings on managed switches in LAN

We have a Windows 2008 server that is connected to a managed switch with about 15 Cat5e connections and three fiber branches that go to different parts of campus. At each of these parts there is ...
Christopher Moran's user avatar
3 votes
2 answers
12k views

How to configure routing between Azure virtual networks?

I'm designing an Azure environment which will contain multiple virtual networks, and a requirement is for all networks to be connected; a VM in any network should be able to talk to another VM in any ...
Massimo's user avatar
  • 71.2k
1 vote
2 answers
4k views

One linux server, one network, two gateway - can server handle connections coming from both gateways?

We have OpenSUSE server with a service running on it. We have two gateways on the network. One of these gateways is set as a default gateway for the server. In this case server can accept connections ...
QeySee's user avatar
  • 48
1 vote
1 answer
10k views

Proxmox - single public ip with multiple vms, openvz containers work, kvm's don't have a route

Currently I only have a /30 block (1 usable IP) (I just ordered a /28 for 13 usable publics, waiting) I just installed proxmox, set up a few virtual containers. Port forwarded the necessary services/...
StrikeForceZero's user avatar
26 votes
11 answers
20k views

Is anyone else using OpenBSD as a router in the enterprise? What hardware are you running it on? [closed]

We have an OpenBSD router at each of our locations, currently running on generic "homebrew" PC hardware in a 4U server case. Due to reliability concerns and space considerations we're looking at ...
Kamil Kisiel's user avatar
  • 12.3k
16 votes
5 answers
45k views

OpenVPN make redirect-gateway optional

I'm currently running an OpenVPN server for multiple clients. All traffic is directed through the VPN (it's set up as gateway; push "redirect-gateway def1"). So far, all is working fine. However, I'...
Tuinslak's user avatar
  • 1,475
13 votes
1 answer
3k views

AWS NAT vs AWS IGW vs AWS Router

As per this answer, router and gateway are same devices, in terms of functionality. In AWS world, we have internet gateway, NAT gateway and router Are these three not the same?
user1787812's user avatar
13 votes
8 answers
38k views

How do i get the default gateway in LINUX given the destination?

I'm trying to get the default gateway, using the destination 0.0.0.0 i used this command: netstat -rn | grep 0.0.0.0 and it returns this list: Destination - Gateway - Genmask - Flags - ...
Suezy's user avatar
  • 233
8 votes
7 answers
5k views

How do you manage your Linux iptables configuration on a machine acting as a router?

I have a couple Linux machines that act as routers/firewalls for my networks and I have a script that runs all the iptables commands to set my rules. This seems to me like a really silly way to do it ...
sjbotha's user avatar
  • 305
8 votes
1 answer
1k views

A few websites are not reachable using Linux gateway

We have a LAN and a Linux Box is used as an Internet gateway. On this gateway, we have installed intranet mail server (sendmail), fetchmail, proxy and DNS. A leased line is connected to this gateway ...
Silkograph's user avatar
7 votes
1 answer
5k views

Utilize two gateways on the same network same interface with load balancing

My setup is two ISPs on a single interface and single network. I can either set my default gateway to 192.168.0.1 or 192.168.1.250 and either work. Edit: Netmask (as noticed in the comment) is 255....
RushPL's user avatar
  • 169
6 votes
4 answers
13k views

Mysterious “fragmentation required” rejections from gateway VM

I've been troubleshooting a severe WAN speed issue. I fixed it, but for the benefit of others: Via WireShark, logging, and simplifying the config I narrowed it down to some strange behaviour from a ...
Deep Thought's user avatar
  • 1,628
5 votes
3 answers
5k views

OpenBSD: Gateway outside subnet (works in Linux)

We need to set up an OpenBSD host to use a default gateway that's outside of it's subnet. This is all I need to do on Linux (not the actual IPs) to achieve it: ifconfig eth0 33.33.33.33/31 up route ...
kshade's user avatar
  • 65
5 votes
3 answers
25k views

Does Default Gateway IP = Router IP?

I am trying to automate logging into the routers setup config page, and if I can get the default gateway IP I want to be sure that I will be able to use that ip to login to the routers config page (of ...
user55887's user avatar
  • 161
4 votes
1 answer
7k views

What is the purpose of netcat's "-w timeout" option when ssh tunneling?

I am in the exact same situation as the person who posted another question, I am trying to tunnel ssh connections through a gateway server instead of having to ssh into the gateway and manually ssh ...
jrdioko's user avatar
  • 577
3 votes
2 answers
293 views

Preventing endless forwarding with two routers

The network in quesiton looks basically like this: /----Inet1 / H1---[111.0/24]---GW1---[99.0/24] \----GW2-----Inet2 Device ...
Jarmund's user avatar
  • 535
3 votes
1 answer
3k views

How to use a Linux OpenVPN client host as gateyway for a Windows OpenVPN client host?

I have an environment where I have a OpenVPN server (Linux) and a few OpenVPN clients (both Windows and Linux). All those hosts (server & clients) are connected to the Internet, they are not ...
nwguy's user avatar
  • 31
2 votes
2 answers
603 views

Default route not on LAN

I have a network that in principle looks like this: H1---\ /----Inet1 H2---->---GW1---< H3---/ \----GW2-----Inet2 H1 and H2 = Hosts that need access to internet with GW1 ...
Jarmund's user avatar
  • 535
2 votes
1 answer
2k views

What is the right place for default gateway in CentOS/RHEL?

As I can see there are 2 places where GATEWAY option could be used in CentOS: /etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-* What is the right place for default gateway and what the ...
cpt.Buggy's user avatar
  • 279
2 votes
1 answer
2k views

Xen machine can see others on subnet but not gateway

EDIT: solved it appears that switching static MAC definitions combined with mapping vif/0 and vif/0 statically to eth0 and eth1 (in domU, as per http://tomclegg.net/xen-eth0-renamed) done it. I'm ...
Karolis T.'s user avatar
  • 2,749
2 votes
2 answers
264 views

Is it possible to use 2 lines from 2 different ISP?

How can I (if it is possible) to set up the network gateway if I have 2 internet lines from 2 different ISPs? Furthermore, one of them is forwarding /28 static ip for (into) our network. Is there a ...
Jake's user avatar
  • 1,172
2 votes
3 answers
10k views

OpenVPN - Client traffic is not entirely routed through VPN

I installed OpenVPN on my dedicated server. Using Viscosity or Tunnelblick on the client, I successfully connected to this server. However, after some tests, I realized that not all the traffic ...
Pierre Espenan's user avatar
1 vote
1 answer
10k views

Routing via gateway to another subnet

Unfortunately I have very little practice with routing in linux and also I was not able to properly phrase my issue for a search. So I will explain the issue here. In the picture below you see the ...
Daniel Messner's user avatar
1 vote
1 answer
476 views

Alma Linux -Static route configuration is not working as fall back mechanism, when default gateway is down

Currently I am using Alma-Linux, where I need to create 2 default gateways for the same NIC. Main intent of 2 default gateway configuration is.. when any one of the gateways is down then other one ...
cpp_learner's user avatar
1 vote
1 answer
237 views

Alma Linux - Gateway fall back is not working, when gateway IP with lower metrics is down

Currently I am using Alma-Linux, where I need to create 2 default gateways for the same NIC. Main intent of 2 default gateway configuration is.. when any one of the gateways is down then it will fall ...
cpp_learner's user avatar
1 vote
3 answers
1k views

Rules based gateway selection under Windows

At our company we have 2 gateways: 192.168.1.1 and 192.168.1.2 Is there a way to configure my machine to use different gateway based on a list of IP addresses/domains? My current solution is to go to ...
daremon's user avatar
  • 195
1 vote
1 answer
17k views

VPN: ERROR: Linux route add command failed with status 2

I'm trying to connect throught ovpn but I have the following error, don't know why: I have ubuntu-gnome and I'm connected throught wifi. .ovpn: client remote gateway.xxx.com 1194 dev tun proto udp ...
Ijuhash's user avatar
  • 11
1 vote
3 answers
573 views

Gateway and router on one computer

We have been attempting to setup a Linux/BSD/etc box that can behave as both an internet gateway and as a router. I don't know how to articulate our situation very well, so please forgive me... ...
miquella's user avatar
  • 250
1 vote
2 answers
2k views

User Account Not Listed in Gateway / or expecting IP address?

I’m trying to connect to my first VM that I've created on Azure. These are the steps I went through: When trying to connect I get this screen: It correctly lists the remote computer address as ...
Alex Gordon's user avatar
1 vote
1 answer
475 views

Prevent / Throttle LAN clients using domain controller as gateway

We're in a remote location in the UK, and as a result, have limited bandwidth. We are using on-router bandwidth throttling to ensure QoS for all users on the network. Our domain controller bypasses ...
stevesweets's user avatar
1 vote
1 answer
2k views

Connectivity restored with `ping`?

My server is operating properly. Something happens... Suddenly, my server is inaccesible via ssh and http. (The only open ports in the firewall.) All eth0 configuration is static, no DHCP. ...
Andrew Parker's user avatar
1 vote
1 answer
2k views

Connecting a LAN to an OpenVPN server via a windows 7 client gateway

I've got OpenVPN set up between my windows 7 client and linux server. The goal is that I'll get secure access to a webapp running on the server from any computer on the client LAN. I'm using ccd to ...
user705142's user avatar
1 vote
2 answers
22k views

gateway iptables dns redirect

I'm having a problem with redirecting pc's dns requests to a local dns server. I want to block access to other dns services except my own. I've found different methods of doing this, none work here. ...
The_cobra666's user avatar
1 vote
1 answer
612 views

machines of two subnets communicate through CentOS(with two NICs)

folks. Firstly, I really have done a lot of searching, but still couldn't find a problem which was exactly the same as mine, and I have tried some of their answers, but didn't work. Finally, I put my ...
machinarium's user avatar
0 votes
2 answers
2k views

Why VM cannot get the public IP I have from provider?

I have a KVM-Host (on Debian) with root@kvm-host:/# cat /etc/network/interfaces auto eth0 iface eth0 inet manual auto vmbr0 iface vmbr0 inet static address 176.x.y.133 netmask 255.255.255.224 ...
static's user avatar
  • 351
0 votes
1 answer
8k views

Multiple IP - different gateways - one interface - Debian Squeezy

i was reading many answers here and everywhere, but I cannot find the right one. I tried several solutions, but nothing works. I have a server with ONE Interface eth0. I have multiple IP's, but I ...
Caesar's user avatar
  • 105
0 votes
1 answer
264 views

GW box not allowing internet from internal computers

I have a relatively new GW box ( CentOS 6.5 ) that can ping www.apple.com. When I change computers inside my network to use this GW as †he default GW, they cannot access the internet. So then I ...
Tony B's user avatar
  • 264
0 votes
1 answer
3k views

Azure routing through point-to-site then site-to-site

I did have a good hunt around for a similar post but couldn't find the same scenario. I am trying to connect to a 3rd party URL from an on-prem machine, through Azure. So: on-prem -> (point-to-site)...
Jason's user avatar
  • 101
-1 votes
3 answers
1k views

want to Make software router having two nic cards using centos 6.4

I'm new on CentOS. I have a CentOS 6.4 system having 2 NIC cards. I want to setup a gateway so I can get internet from public ip over 1st nic card (eth1) and forward the network over 2nd nic card (...
Rahul's user avatar
  • 93