0
votes
0answers
7 views

IPTables forward to external IP, but keep source IP

Can I forward connections on port 25 from one server to another, but keeping the original source ip when the 2 servers are on different networks?The problem I'm having is, connections going to ...
0
votes
0answers
23 views

PPTP server and iptables to monitor bandwidth

I have set up a PPTP server on a Digitalocean droplet using this tutorial. I am also learning to use iptables and trying to measure total bandwidth used by PPTP clients using iptables (using this ...
2
votes
1answer
85 views

How to configure on a multi-homed host so Docker containers on a custom network use a specific external IP for outbound traffic?

I have a server (Ubuntu) with two public IPs: the first one is dynamic and the second static.Software run on the server connects to a public internet endpoint which is behind a firewall for ...
0
votes
0answers
28 views

iptables PREROUTING and POSTROUTING doesn't seem to forward any packets (OpenWRT)

I am trying to mirror all packets sent or received by Device B and send them to Device A for logging. I have an OpenWRT acting as a wireless access point, and I have issued the following commands to ...
0
votes
1answer
5k views

TCP connect: No route to host

I started a tcp server on a host A and then start a tcp client on another host B.Both hosts are in the same LAN via the wireless router at home.the tcp client tries to connect to tcp server on port ...
1
vote
2answers
4k views

Block port 111 on centos 7

I am using a server with centos 7 running kvm/virtualization, I access using VNC server.Today I received an warning about my server being used to attack other server using port 111, I am completely ...
2
votes
2answers
4k views

Mark packets with iptables by destination mac address

I need to mark packets which goes to a specified mac address.I need this to use in shaper with tc.--mac-destination doesn't exist in iptables.Also I tried to use ebtables:ebtables -t nat -A ...
1
vote
1answer
3k views

using firewalld and firewall-cmd how to add-rule to primary INPUT chain not INPUT_direct

so after reading the firewalld man page and fedora documentation, I have come to the understanding that to add a custom rule to firewall with specific arguements i need to use the structurefirewall-...
0
votes
2answers
4k views

How to use iptables to allow traffic only through ONE SPECIFIC VPN

I'm trying to allow all traffic from my Banana PI running Lubuntu to only go to my LAN or otherwise through an VPN Server. I'm following this guide: http://joelslowik.blogspot.co.uk/2013/05/setup-...
1
vote
1answer
64 views

Setting up proxy VM with VirtualBox DNS problems

Using VirtualBox on Ubuntu, I want to connect two Linux (debian 9) VMs together, so that the first one acts as a router for the second one (VM2), whose traffic is completely routed through the first ...
0
votes
0answers
12 views

REdhat Bond traffic to single port; iptables or routing?

I've been struggling to find an answer to this, we are running a server that has a "management interface" eth0, and an "application interface" eth1. Both operate on port 80, we want to be able to say ...
0
votes
1answer
63 views

NAT and UDP - IP source broadcast

I have a NAT issue with UDP and broadcast :iptables config : (a basic port redirection same server, UDP 80 to 8080)iptables -t nat -A PREROUTING -p udp --dport 80 -j REDIRECT --to-port 8080...
0
votes
2answers
1k views

ipTables, how to block all services requests on port 80 for an IP?

On a linux server/router,I want to block port 80 only for one IP (example : 1.2.3.4 )I have been given this example :### Block Incoming Port Requests (BLOCK PORT)# To block port 80 only for an ip ...
1
vote
1answer
76 views

Making routing decisions based on UID using nftables

I am trying to route packets based on the uid of of the originating process.I know that PREROUTING is not hit for outgoing packets. In iptables there where a MANGLE table where you could place those ...
2
votes
2answers
691 views

iptables prevent lan access from another router

I have two Tomato firmware routers setup. Router X is connected to the internet via it's WAN port. The router Y's WAN is connected to router X's LAN1 port. I'd like to restrict router Y so that it ...

153050per page