As of May 31, 2023, we have updated our Code of Conduct.

New answers tagged

0 votes
Accepted

Route all traffic (except port 3336 and a few more) from eth0 to specific ip

As @frax already said, I had to use DNAT to route traffic in my case. Hours of searching, googling, communicating with ChatGPT brought me needed result. Firstly, i decided to use iptables console ...
Михаил Агафонов's user avatar
1 vote

Route all traffic (except port 3336 and a few more) from eth0 to specific ip

If I understand your description and your other (proxy-post) correctly, you will want to do a DNAT (Destination Network Address Translation ... also called port-forwarding) on all ports apart from ...
frax's user avatar
  • 31
1 vote

Packet with same src addr with loop back beening dropped

I found that the kernel parameters accept_local solve the problem. In the newer kernel accept_local won't depend on the value of rp_filter net.ipv4.conf.default.accept_local = 1 net.ipv4.conf.all....
Cheuk hei Ho's user avatar
0 votes

Routing internet traffic via the vpn interface

You need to add a route specifically for the VPN peer otherwise your side will start to route the VPN packages for the tunnel inside the tunnel itself. ip route add v1.v2.v3.v4 via 10.117.176.w4 dev ...
frax's user avatar
  • 31
0 votes
Accepted

AWS: routing back from VPC to an instance

assuming that: your VPC CIDR is 10.36.0.0/16 you have a subnet in that VPC: subnet-0011aabb with CIDR 10.36.1.0/24 this subnet is associated to route table: rtb-0011aabb your VPN instance is i-...
exeral's user avatar
  • 1,749
0 votes

How do I forward nginx requests to a specific upstream/backend based on request body?

Working example that maybe can help whoever lands here: https://github.com/ericminio/learning-nginx/tree/master/payload_filter map $request_body $matching { default 'not_matching'; ...
ericminio's user avatar
1 vote
Accepted

Allowing a route to/from network when there are multiple networks

TL;DR ip route add 192.168.117.64/26 dev onboard-10Gb-1 table 1000 ip route add default via 192.168.117.65 dev onboard-10Gb-1 table 1000 ip rule add from 192.168.117.70 lookup 1000 For more details, ...
A.B's user avatar
  • 10.4k
1 vote

what is the "ip route" equivalent of "route add -host" in linux?

"ip route add" can only take an IP address or a prefix for the destination argument. The documentation (search for "man 8 ip") describes this explicitely. The destination can be an ...
J.P. Tosoni's user avatar

Top 50 recent answers are included