Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3567

System and Network configuration • [Solved] IPTables redirect rule works on amazon linux, not on debian

$
0
0
None of the solutions on the internet worked for iptables. I have tried various combinations of chains, targets, etc. etc. Even tried tampering with systemctl:

Code:

sysctl net.ipv4.conf.all.route_localnet=1
None worked.

The only solution was this one line command:

Code:

sudo socat TCP-LISTEN:80,fork TCP:127.0.0.1:23012

Statistics: Posted by aario — 2024-01-31 09:51 — Replies 5 — Views 145



Viewing all articles
Browse latest Browse all 3567

Trending Articles