New answers tagged routing
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 ...
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 ...
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....
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 ...
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-...
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';
...
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, ...
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 ...
Top 50 recent answers are included
Related Tags
routing × 3637networking × 1050
linux × 650
iptables × 543
vpn × 412
openvpn × 408
nat × 253
linux-networking × 229
ip × 214
router × 182
firewall × 170
cisco × 165
subnet × 160
windows × 154
ubuntu × 146
ipv6 × 132
vlan × 118
gateway × 115
switch × 109
ip-routing × 106
domain-name-system × 96
pfsense × 91
amazon-web-services × 88
centos × 82
debian × 76