Questions tagged [ip-routing]

281 questions
1
vote
1 answer

Route internet traffic through one nic and local traffic through a second nic

I am trying to route traffic through a specific interface based on its destination. OS is CentOS 7. I am setting up a mini MPI farm where I have 2 slave workers and one master. The master and slaves use the built-in nic (em1) to communicate locally…
1
vote
0 answers

Windows Server - Redirect Traffic To Another Subnet

on windows server 2012 I have 2 network cards, one of them connects directly to the router on static ip 192.168.1.11 and that second card I have a second ip set as 192.168.1.12. From the router I forward the port 22 to 192.168.1.12 which hits the…
1
vote
1 answer

Forward traffic to remote external IP through a specific interface

Network Diagram I have 3 servers with two interfaces each, as shown in the diagram. The servers communicate with each other through the interface enp1 and to the world through the interface enp0. For some reason, the servers can not communicate…
alixander
  • 161
  • 7
1
vote
0 answers

Windows routing without gateway (but through interface). Is it possible?

I have a custom network setup. My servers have what I would call "main IP" with gateway for example: Main IP: 67.166.214.148 Netmask: 255.255.255.0 Gateway: 67.166.214.1 And then I have additional IP addresses which are routed to the server…
A. Smith
  • 11
  • 7
1
vote
0 answers

IP packets does not respect ip rule

I'm running Linux and have the following ip rules ip rule list 0: from all lookup local 150: from 217.31.55.96/28 lookup custom 32766: from all lookup main 32767: from all lookup default This is for catching all IP packets coming with…
1
vote
0 answers

static IP handling

I have two IPs on one interface, when the packets are sent out it is always picking first IP but I want the packets to be sent out on second IP I have two servers in HA (Active-standby) configurtion. server 1 is assigned with in eth0 10.1.1.1 adn…
Chathurva
  • 11
  • 1
1
vote
1 answer

3 Static IPs, 1 Modem, 1 Dual WAN TP-Link Router

Can I place a hub/non-L3 switch between my Router and Cable modem to utilize the other IPs? I'm interested in using one of the IPs for Direct Access. Thanks
1
vote
1 answer

Don't get ICMP reply when ping from specific interface

I have a linux machine running under CentOS with 2 ISP. My rollover ISP channel script try to determine when we at secondary ISP channel is there a primary ISP channel get up and vice versa when need to change from primary to secondary. Normal…
user419775
1
vote
3 answers

Routing table with two same static IPs on the network

We need a way to insert a device between a target device and the network, ideally without needing to change any IP addresses. Currently, the situation is (please excuse the ASCII art) ----------- ------------- | x.x.x.5 | ----- | x.x.x.10 …
DougN
  • 670
  • 2
  • 7
  • 16
1
vote
1 answer

Kubernetes: Preserving source IP / Passing external IP as source

Sorry if the title, and tags, are a bit vague, I couldn't figure out the correct terms for it, yet. Please advise, and I will change it. I'm implementing a STUN server, boxed in a Docker container, which is hosted on Google Container Engine's…
Adam Law
  • 121
  • 4
1
vote
1 answer

How to create a protocol-based default route using iproute2

I'm trying to create two routes -- Send all packets with IP protocol version 100 to 1.1.1.1 (via device eth1) Send all other IP packets to 2.2.2.2 (via device eth2) Reviewing the man pages of ip-route and ip-rules, it seems like I should be able to…
Runcible
  • 3,145
  • 3
  • 23
  • 15
1
vote
1 answer

How to make routing between bridges in linux?

i want to create bridge for my virtual machine. And i want to have access in internet from my virtual bridge. What i did: DEVICE=br1 TYPE=Bridge ONBOOT=yes BOOTPROTO=static IPADDR=192.168.1.1 NETMASK=255.255.255.0 I have bridge in my network (by…
Valeriu
  • 57
  • 2
  • 9
1
vote
1 answer

How can destination addresses 132.148.77.28 and 132.148.77.28/32 be use different network interfaces for routing?

The output of netstat -rn on my FreeBSD virtual machine shows that: Internet: Destination Gateway Flags Netif Expire default 10.195.51.254 UGS vtnet0 10.195.48.0/22 link#1 U …
papiro
  • 159
  • 1
  • 8
1
vote
0 answers

Ubuntu Server 2 NICs use VPN on only one of them

I have a server with two NICs, both connected to the network: eno1: flags=4163 mtu 1500 inet 10.0.1.2 netmask 255.255.255.0 broadcast 10.0.1.255 inet6 fe80::9618:82ff:fe37:9048 prefixlen 64 …
Simon
  • 11
  • 1
1
vote
1 answer

How to use another IP-address for outgoing traffic?

Background I run a server with two external IPv4 addresses. IP-address A (IP-A) and IP-address B (IP-B). Goal I would like to access IP-A over HTTPS port 443 and SSH port 22 only. IP-B shouldn't listen to any incoming traffic. Then I'd like the…