All Questions

Tagged with
0
votes
1answer
35 views

How to route all incoming packets to remote proxy?

I have a Wi-Fi hotspot setup in Kali. Interface wlan0 on 10.10.10.1/24. I setup an Android (10.10.10.2) to proxy requests through Burp on port 10.10.10.1:9999. This is done in the Android's Wi-Fi ...
1
vote
1answer
19 views

how to get packets log which are dropped by rp_filter=1

I do need a log of packets which are dropped by rp_filter ... how to do this logging ? which logs how to enable.
1
vote
0answers
41 views

How to send traffic to a specific IP address via a specific interface?

On a Debian Stretch VM (running in VirtualBox on a Windows 7 host), I would like to connect via SSH to a specific remote host (let's call it myServer, with IP 12.34.56.78). To do so, I'm using my ...
0
votes
2answers
36 views

Linux routing flow

I want to know how Linux uses routing table when reaching out to another ip. As i know for example when we run "ssh 192.168.21.2", system will create the tcp packet with destination ip as 192.168.21.2 ...
0
votes
0answers
13 views

Adding Options To IPv6 SLAAC RA-learned default routes that survive RA-updates

I use IPv6 SLAAC to distribute routing information in my network. The default route has a lifetime of 1800s and is getting regular updates through the router. However, if I modify the default route, ...
1
vote
0answers
16 views

Routing specific user/application through VPN only

I have a similar setup to a question raised here some time ago. Here I have a VPN (OpenVPN) running on my ClearOS server (acting as a gateway for my LAN's internet/security, with two network ...
0
votes
0answers
56 views

Ping a network hosted in a server from hosts in different subnet

Setup and Environment Host A is Ubuntu VM (GNS3). All other Servers are RedHat. Network Path [Host A(x.x.y.b) --via-- Host B (x.x.y.a)] ----|---- [Host C (x.x.z.c) & Host D (x.x.z.d)] Host A ...
0
votes
0answers
21 views

Network gateway with OpenVPN and HAProxy on one server --> routing problems

I am setting up a gateway for my network that includes a reverse proxy (HAProxy) and a openvpn server on the same machine. I want to use the openvpn to connect to a vpn provider so that all the ...
2
votes
0answers
29 views

Linux AP does not route ping replies to final user

I am struggling with the routing in my topology. In this topology I have the following structure with 2 PCs. Each one of them has 2 different interfaces configured in different subnets: 192.162.2.10/...
1
vote
0answers
77 views

Linux is caching routing and IP information for established connection. Asymmetrical routing issue

We have following setup : client (10.10.0.2) balancer (eth1: 10.11.0.3, eth2: 10.12.0.1) web-server (eth1: 10.11.0.4, eth2:10.12.0.2 and eth1:10.11.0.3 see below how) Masquerading router to route 10....
0
votes
0answers
40 views

Networking problems: 2 interfaces with 2 gateways, seperated routing tables not working as expected

I have a server, running Ubuntu 16.04.5 LTS with 2 IP addresses on 2 nics: eth0: 192.168.1.5/24, gw 192.168.1.1 eth1: 192.168.2.5/24, gw 192.168.2.1 As I searched here and on Google, in order to ...
1
vote
1answer
54 views

Programmatically find unused Linux IP route table ID?

As part of a script, I'd like to temporarily add a route table for the duration of the script. ip route add default via "${ip}" dev "${dev}" table "${table}" . . . ip route flush table "${table}" If ...
0
votes
0answers
75 views

VPN S2S IPSec. Linux strongswan to AWS VPN and routing problem

I want to connect my Linux Centos 7 to AWS VPC VPN Ipsec. I have got problem with a routing. My IPSec connection via Strongswan is UP. conn Tunnel1 auto=start left=%defaultroute leftid=...
1
vote
0answers
74 views

NAT box with two external interfaces and two network namespaces

I have an ARM embedded system with kernel 4.9.62 that has two physical interfaces as shown below: ________ +-------...
0
votes
1answer
100 views

iptables SNAT limit to specific network

I have one problem which I cannot resolve as I frankly don't know how, I haven't used iptables quite often.... I have one main linux router which is representing gateway for the internet access and ...
2
votes
1answer
281 views

firewalld to allow routing without NAT between NICs

As a network adminstrator, I often have to set up network gear for remote sites before shipping it. I have found it convenient to use a linux workstation with two network cards, setting the secondary ...
0
votes
2answers
54 views

Routing over Gateway

I have a very basic question about a routing issue I have right now. So my central server with the ip 10.0.0.1 of my own network is the router for the ip net 10.0.0.0/25. On the client 10.0.0.100 I ...
0
votes
1answer
189 views

Configuring Linux Mint as a Gateway

My trusty Slackware box died, and I had to replace it with an already built Linux Mint v18. I was hoping this would be a drop-in replacement, but routing has changed over the years with iproute2. I ...
1
vote
1answer
51 views

What is a Linux IP route without outgoing network interface (RTLINK answer lacking `RTA_OIF`) and how do I create one for testing?

When using RTLINK to query the available IP route from a (network-namespaced) Linux kernel, I noticed that on one test system RTLINK returns a route without a RTA_OIF attribute, that is, without an ...
1
vote
0answers
46 views

Return Packets Not Being Routed On A Linux Router I Built

I've created a router running Raspbian on a Pi and connected a bunch of clients to it. It's just a toy project and I only care about routing between the nodes, so I'm not using NAT or anything like ...
2
votes
0answers
35 views

User specific hostname

I have a linux and bsd system with multiple (virtual) network interfaces. On those systems there are multiple users. Each user should use its own interface and therefore address. Is it possible to ...
2
votes
1answer
293 views

Linux IPv6: Specifying policy routing table for default gateway learned from a router advertisement?

Is there any way to tell the kernel which policy routing table should receive the default route learned from an IPv6 router advertisement? My home network has native IPv6 service from Spectrum and a ...
1
vote
1answer
87 views

How to find out the interface which is being used for internet?

I have multiple network interfaces and I am not sure which interface is being used for the internet connection. I tried the methods which are listed in the question How to find out which interface ...
1
vote
1answer
341 views

Output of `ip route show` seems incomplete: no default route, but internet is reachable anyway

On my Android phone, where I have a Debian system running in userspace (apt, GNU tools, and other software runs in a chroot, accessible through ssh), the routing table seems incomplete. Output of ip ...
0
votes
1answer
43 views

Change outbound IP - centos

i have a server (linux/centos) and my default ip is: 111.111.111.111 so i bought another ip (ip failover) 222.222.222.222 if i visit in browser 111.111.111.111 or 222.222.222.222 its opening same ...
0
votes
1answer
190 views

Network interface routing when using VPN

I want to connect to a VPN but not send all traffic through it. Here is how my network is setup with the VPN redirecting all traffic. This is the default with the vpn config not changed. $ ip rule ...
1
vote
1answer
55 views

Linux packet routing [closed]

I'd like to route traffic from one Ethernet to another only if a given rule is met. The "rule" is as follows : if a specif value (numeric or string) is found within the packet - the traffic is ...
0
votes
2answers
101 views

Routing multiple Virtual IP (192.168.11.X) to connect with test server (192.168.10.246)

We are trying to setup a test bed for our server testing, to simulate multiple connection / msg handling, I am trying to connect to our test server from a virtual IP. on the client machine (Debian) ...
0
votes
1answer
44 views

Kernel routing issue on Ubuntu 14.04 virtual machine

We are having some weird network behaviors on some Linux VMs (cloud based, multiple providers, mostly Ubuntu 14.04 and 16.04). We have two distinct networks with a Strongswan gateway in-between. ...
1
vote
0answers
55 views

iptables and source routing policy issue

I have a service running in a network namespace and few iptables rules to expose it to the external world. The following commands are an example of my setup: sudo ip netns add ns1 sudo ip link add ...
0
votes
2answers
58 views

What is best approach for setting up internet gateway from orange pi running Raspbian

I have cheap IoT device from Orangepi running raspbian server with wlan0 and ppp0 interfaces. wlan0 will be connected to access point in the local network. the ppp0 interface will be connected to GSM ...
2
votes
0answers
387 views

Ubuntu pinging from link-local address instead of global

I have a network like this, (client 2001:10:1:100:0/64) -> router -> (server 2001:172:16:200:0/64) However, when I ping from client to the 172.16.200.0 network, (or anywhere) it always uses the link ...
1
vote
1answer
32 views

Mutiple default routes

I have connected two server via vpn. Server A hosts all container and server B is just a simple router. I need to attach to both server via ssh, as so, the default route of ppp0 (server A) and eth0 (...
0
votes
1answer
657 views

CentOS routing between multiple subnet

for school we have to do a linux routing vm between 4 subnet but the routing only works in one way. Let me explain, here is a schematic: The router in the center is a CentOS 7 fully up-to-date with 4 ...
0
votes
1answer
600 views

How to setup multicast for this network?

I have a Network like this at my home. # ip route show default via 192.168.0.1 dev enp1s0 192.168.0.0/24 dev enp1s0 proto kernel scope link src 192.168.0.110 192.168.1.0/24 dev enp3s0 proto ...
1
vote
1answer
36 views

How to prevent routing between some subnets (but allow routing to others)

I have a Model 3 Raspberry Pi with Raspbian Linux 8.0 set up as a VPN router. It has the following network interfaces: eth0 - configured as wired Internet uplink (currently not used) wlan0 - wireless ...
0
votes
1answer
148 views

What does lookup <interface name> mean in ip rules?

Please can someone help me understand ip rules/routing policies in linux? For instance consider the below example, 101:from all to 192.168.0.51 lookup table_custom 190:from all to 10.2.3.4 lookup ...
0
votes
0answers
313 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
115 views

Are separate unidirectional uplink and downlink interfaces on Linux possible?

I'm using radio communication between access point and linux station. When machine only sends packets then connection quality is okay. The same can be said about situation when machine only downloads ...
2
votes
1answer
2k views

Linux routing to internet with multiple interfaces

I have a raspberry pi with three interfaces connected, eth0, wlan0 and ppp0, what i'm looking to achieve is having routes to the internet through all interfaces, but so far only eth0 and ppp0 gets a ...
8
votes
2answers
5k views

In Linux, what metric has a route with no metric?

If you have (in Linux) these two routes: default via 192.168.1.1 dev enp58s0f1 default via 192.168.16.1 dev wlp59s0 proto static metric 600 I would expect that the first one is used, but that's ...
-1
votes
1answer
112 views

How to use two network interfaces at same time?

I have two network interfaces as ppp0 and ppp1. The "route" output: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default * ...
0
votes
0answers
395 views

How to share local network over tinc?

I have to device, eth0 192.168.8.178/22, tun0 10.0.0.2/24 I hope from 10.0.0.1 (another host) can access 192.168.8.178/22. $ ip -4 addr show eth0 2: eth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP&...
1
vote
0answers
390 views

How to route traffic from a specific user through a VPN on Linux

I'm trying to tweak my setup so that I can route all traffic from one of my user accounts via a VPN connection. So far I haven't been able to achieve this. OS: Fedora27 When connected to the VPN ...
1
vote
1answer
96 views

Routing from 2 WAN to same LAN

I'm using a Linux based router appliance (named Zeroshell), but it should be a question related to generic Linux routing. The router computer has 4 NICs, named ETH0 to ETH3. ETH0 is on the actual ...
0
votes
1answer
465 views

Is it possible to force fwmark reflection in arbitrary-TCP reply packets?

Has anyone solved the problem of fwmarks being lost in TCP socket-connection replies? Background: I need to ensure replies go out on the same interface on which their requests were received, and ...
0
votes
1answer
1k views

Route all eth1 traffic over VPN

I have 3 NIC in my system: eth0 (192.168.1.54), eth1(192.168.1.55), wg0 (VPN, 192.168.99.1) I'm looking for a way to route all eth1 traffic (tcp and udp) over wg0 (Wireguard VPN). What I am trying ...
1
vote
1answer
305 views

How to prevent new isolated Virtual Interface from listening to 0.0.0.0:*

I am creating a new Virtual Interface: ifconfig eth0:0 123.123.22.22 The command netstat -tlnp returns something like this: Proto Recv-Q Send-Q Local Address Foreign Address ...
1
vote
0answers
718 views

How to read Linux “martian source” logs?

I'm setting up KVM virtualization host with policy based routing (192.168.1.0/24 management network for host related traffic like updates,ssh etc, 192.168.2.0/24 DMZ network routed to VMs) Setup ...
3
votes
1answer
69 views

Access host on network B from machine on network A

My notebook has IP 1.1.1.1 and has a wired connection to another machine B that has IP 2.2.2.2. I don't have access to machine B because I locked myself out of it. How do I have to setup routing on ...