Questions tagged [forwarding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
44 views

How to configure IP Forwarding

I have a device DEV1 which should communicate with device DEV3, however in the middle there is DEV2. My understanding is that I need to use IP Forwarding in DEV2 and edit route tables on DEV1 and ...
0
votes
0answers
13 views

Reroute traffic from PPTP interface to Wireguard interface

I would like to set up Wireguard client on my router. However, I'm a Mikrotik fan and the router doesn't support Wireguard. I'm planning to set up Wireguard client on a Linux, connect Mikrotik to ...
0
votes
0answers
34 views

iptables Data packets not forwarded, everytime after power cut

I am getting data from a remote RTU (192.168.100.2) to my server through L2TP on peer ip (168.18.13.3) over public ip defined on eth0. I configured eth1 with 168.18.13.1 And this is connected to ...
1
vote
0answers
33 views

Forward traffic to other interface

I have two interfaces eth0 and eth1. I want all traffic on eth0 to be forwarded to eth1 without changing anything to packet(origin Src/Dst IP, port etc. has to same). I found some articles about ...
0
votes
1answer
57 views

IPTables Forwarding and MASQ not working

I am trying to setup Traffic forwarding and NAT for my VM machines.I am having setup in which there are 2 linux OS i.e. Ubuntu and CENTOS and I want that traffic should be forwarded from Ubuntu to ...
0
votes
1answer
14 views

Linux disconnect two subnetworks

I have one router with 3 networkcards (one goes global and two are intern) and I would like to know if i enabled in the router nat.ipv4.ip_forward = 1 so does a host on subnet 1 cann reach a host on ...
1
vote
0answers
12 views

Information on forwarding queue occupation (if existent)

I have a router forwarding traffic from a network to another and I need to know when the packet queue (in the receiving side/interface - rx) occupation is close to its maximum capacity. However, ...
0
votes
0answers
10 views

Webserver Request Forwarding

This is a bit of a complicated request. The short of it is, I want to access a website that is generally public, while I am behind a firewall that blocks it. NOTE: the traffic will be almost ...
0
votes
1answer
17 views

Issues in getting internet from another node through Ethernet

I am trying to get internet on node1 [IP: 1.2.3.4] from another node2 [IP: 5.6.7.8] which has a working internet connection, through ethernet. Packet forwarding is enabled on the node2 which is ...
2
votes
1answer
166 views

How to share “internet hotspot” access to a network on a second wifi adapter?

Can anyone assist with a linux routing question? Essentially I want to use an Ubuntu laptop to provide internet access to an attached network. I have a Raspberry pi on a wifi network (192.168.42.0/24)...
0
votes
0answers
23 views

Proxy git user's SSH login to internal GitLab CE container

I have a metal box with Ubuntu and I have set up GitLab CE inside a Docker container (whose IP address is only accessible within the docker0 network), so there's only one public IP for the whole ...
0
votes
1answer
54 views

Pinging one interface of Linux router by another interface of this router

I have such a topology made of network namespaces and veth pairs: ------ ------ ------ | a1 | | r1 | ...
0
votes
1answer
20 views

several instances of bind serving same domain

I am trying to configure two DNS-servers (bind) on 2 linux-servers (server1 and server 2) acting as master for the same domain. server1 is intended as primary server and can resolve a subset of all ...
0
votes
1answer
31 views

Why would my router reject forwarded packets to itself?

The first rule in the FORWARD chain is interesting to me. Why would this be a necessary rule if the policy is to DROP? root@tomato:/tmp/home/root# iptables -L --line-numbers Chain INPUT (policy DROP) ...
0
votes
1answer
27 views

SSH Tunneling, have some problems [closed]

I have a computer and host A, B. Host A has internet connection and host B placed in host's A local network. Host B has Web Interface at port 8080. I need to forward port on host A. And then i want to ...
0
votes
0answers
40 views

How can the IP masquerading forwarding through a VPN gateway be configured to access the WAN router the gateway is attached to?

I have a gateway machine on my network running a VPN which routes outgoing traffic through a router, but the masquerading rules prevent the machines on the network from connecting directly to the ...
2
votes
1answer
307 views

In X11 SSH forwarding, keyboard isn't working properly (Only Ctrl + .. and numeric keypad works!)

I'm using Ubuntu 18.04 desktop at the office. In order to work with server, we're required to connect to a remote Windows 8 machine, and then open SSH connect to an Ubuntu 16.04 server from here. ...
0
votes
0answers
57 views

VOIP worked with Mint 19.1 & kernel 4.4, fails w/ kernel 4.8

With Linux Mint 19.1, kernel 4.15, I connect to the Internet using WiFi, and want to share the Ethernet connection with a Grandstream IP Phone. I have done: click | network connection | wired ...
0
votes
1answer
40 views

Can't access SNMP stack on rasp pi through router from WAN

Background I am running the following On my laptop the very latest version of arch linux with all the latest updates. It is from this laptop that I am querying an SNMP stack on a rasp pi $ uname -...
0
votes
0answers
54 views

Linux iptables forwarding

I've 3 machines : 1 server with LAN card without internet direct access 1 Windows host with WiFi connection for Internet and 1 LAN port 1 linux virtual machine on the Windows host [...
1
vote
2answers
411 views

How to check if a packet reached an interface in a multi-interface context?

Consider the following topology: I am sending ICMP (ping) packets from host B to 10.0.1.1. They reach the target and the target answers with a reply. The connectivity works fine. When running, on ...
2
votes
1answer
365 views

Masquerade rule with netfilter-persistent

I use netfilter-persistent to manage a firewall. I would like to share a connection between two interfaces using masquerading (example, or another). When I run those operations by invoking iptables ...
0
votes
2answers
2k views

How to redirect website in restricted network through ssh tunnel

I have established a reverse ssh tunnel into a restricted network to an aws server, i.e. to access it, I ssh into the aws server and from there I get access to the machine in the restricted network on ...
2
votes
1answer
20 views

Simple audio forewarding scheme

laptop(1) - wifi router(2) - wifi enabled PC(3) - speakers(4) (1) is a portable laptop, running some graphical interface. It has ssh access to (3) set up. (3) is an old machine, and thus running ...
1
vote
0answers
223 views

Purpose of UFW Allow All Rules in FORWARD chain?

What's the purpose of the allow all rules put into the FORWARD chain by UFW? They're currently messing up the 5 ACCEPT rules I've put in place underneath. Unless there's some specific valid reason ...
0
votes
0answers
112 views

WSL: Redirect links to host

As Windows is missing a nice twitter client I'm using WSL, with X11 forwarding to get Corebird running on my Windows 10 host. The question is: Is it possible to redirect the click on a link within ...
1
vote
2answers
89 views

Does OpenSSH >=7.2 support local-side tilde expansion for remote Unix socket forwarding

I am trying to forward a gpg-agent Unix socket to a remote machine. I have tried the following two versions of the remote forwarding command: A: ssh -vvv -N -R ~/.gnupg/S.gpg-agent:~/.gnupg/S.gpg-...
2
votes
1answer
2k views

Can't forward traffic from eth to TUN/TAP

I'm trying to forward traffic from a physical interface enp5s0 to a virtual one tun0. The goal is to make tun0 receive essentially all packets from enp5s0. First, I enable forwarding with a command ...
0
votes
0answers
691 views

IPv6 forwarding doesn't work

I have three Virtual Machines: A, B, C. Machine A and Machine C connected to each other through the B. Their config: A's IP: 2000::ffff:50a:b0b/120 C's IP: 2000::ffff:50a:d0d/120 Machine B has ...
1
vote
1answer
358 views

trouble setting proper forwarding rules in `iptables` with custom ip address for network sharing

I am having issues setting up a bridge for my raspberry pi. My setup is: I have a laptop running fedora 27 workstation which is connected to the internet over wifi. I have a Raspberry Pi Zero W ...
0
votes
2answers
702 views

Iptables remote PC as gateway (all traffic forwarding)

Here is a problem: I have complete ssh access to two machines on the local intranet. On machine two quick and reliable internet access. I want to forward all outgoing traffic from machine PC1 via PC2 ...
1
vote
1answer
660 views

Forward traffic to virtual interface based on source IP address dynamically using iptables

I'm experimenting DNS server setup that reply different results based on source IP address. and the same time I need to dynamically change what interface external source ip should forward, eth0 ...
0
votes
0answers
59 views

how to to bridge two networks and packet alteration

I am trying to bridge two networks (i.e. 20.20.10.0/24 and 20.20.20.0/24). I have a machine (Ubuntu 16.04) connected to both networks and my ultimate goal is this machine to act as a bridge between ...
2
votes
0answers
685 views

Internet access in LXC container with nftables

I'm currently trying to give an LXC container internet access using nftables, but I don't seem to get it right whatsoever. The setup is the following: The host has a WAN interface (enp1s0) and a ...
1
vote
1answer
508 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 ...
0
votes
2answers
1k views

Port forwarding using VPN client

I've already looked here and believe this is on the right track, though I still can't get it to work: Port forward to VPN Client? I have a vps, and on that vps I'm using openVPN. I have a connection ...
2
votes
0answers
102 views

Why response packets are not forwarded between interfaces?

I have the following situation on my host: veth5 10.0.0.3 o | ----------------- ...
1
vote
2answers
912 views

Sysctl Parameters accept_local and rp_filter Not Working on Dual-NIC Machine

root@host-3:~# uname -a Linux host-3 4.4.35-1-pve #1 SMP Fri Dec 9 11:09:55 CET 2016 x86_64 GNU/Linux root@host-3:~# cat /etc/debian_version 8.9 root@host-3:~# ifconfig eth0 Link encap:Ethernet ...
5
votes
1answer
6k views

IPTABLES: process a packet locally and send a copy to another host

I have a trouble configuring iptables to do this: some clients send messages to a server. I want that the host server processes the messages locally (host A, as normal) but that additionally for each ...
3
votes
1answer
1k views

What is kernel ip forwarding? related question

This question is related to the answer & comment in What is kernel ip forwarding? from @LawrenceC post1: So in the above example, if you have an internet connection on NIC 2, you'd set NIC ...
5
votes
1answer
12k views

Is net.ipv6.conf.all.forwarding=1 equivalent to enabling forwarding for all individual interfaces?

or it is the only way to enable forwarding for IPv6? /proc/sys/net/ipv6/conf# grep '' */forwarding all/forwarding:0 default/forwarding:1 eth0/forwarding:1 lo/forwarding:1 nat64/forwarding:1 tunl0/...
1
vote
0answers
106 views

CentOS packet capture device

I want to build a packet capture device for my home network (testing purposes). I have a spare computer with one NIC. I have CentOS. I've used TCPDump before so I plan on using that for now to see ...
3
votes
2answers
9k views

Port forward- Why is iptables with POSTROUTING rule required?

Supposing I have two servers: -->Server A has the IP XXX.XXX.XXX.XXX -->Server B has the IP YYY.YYY.YYY.YYY What I want is to redirect trafic from server A (port 80) to server B (port 80). A ...
0
votes
1answer
594 views

Postfix relay to one server from multiple users

I am trying to build a smart host in an Unix system, with Server app, Mail service and an Open Directory for local users. My question is if there is a way to use an email just for forwarding mail ...
3
votes
1answer
557 views

Is there any way to forward mail from the command line in Linux

I'm looking at the mail command which fires off Heirloom Mail. My procmail failed and it has 55 messages in the queue. I need to forward them out to another email and then process them manually. I'm ...
2
votes
0answers
293 views

Redirection of traffic from one computer to another

I have two computers on the same lan Comp A: 192.1681.151.15 Comp B: 192.1681.151.19 When I open Wireshark, for all traffic browsed on comp A, I would like Wireshark to capture traffic of comp A and ...
2
votes
1answer
192 views

Port forwarding for VirtualBox + Tor

I am a little confused, maybe someone can help me. I have configuration like: Router [External IP: 91.111.91.111] -> PC [Nat IP: 192.168.1.20] -> Virtual Machine as a Gateway (Whonix - Tor) [Nat IP ...
2
votes
0answers
304 views

Redirect traffic to specific website

I am trying to setup something like a captive Portal but get stuck. I have an embedded device which starts a Wireless Access Point. Now I like to forward all traffic to a website on the device. I do ...
3
votes
1answer
7k views

Limiting IP forwarding between certain interfaces/networks

I currently have ipv4.ip_forward enabled to route packets between multiple interfaces. I am now scaling up the system to 8 interfaces, but I want to limit the routing between interfaces/addresses. ...
8
votes
2answers
37k views

iptables forward traffic to vpn tunnel if open

I've used the following guide to set up my raspberry pi as an access point: Raspberry Pi 3 as wifi access point I'm forwarding wlan0 to eth0 and NATing all my traffic. Works great! sudo iptables -t ...