Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When forwarding traffic we receive an "unsupported request" #194

Open
whakru opened this issue Aug 11, 2024 · 0 comments
Open

When forwarding traffic we receive an "unsupported request" #194

whakru opened this issue Aug 11, 2024 · 0 comments

Comments

@whakru
Copy link

whakru commented Aug 11, 2024

I have an openwrt router and transfer the client to linux ubuntu via iptables:

iptables -t mangle -A PREROUTING -j ACCEPT -p tcp -m multiport --dports 80,443 -s 192.168.31.123
iptables -t mangle -A PREROUTING -j MARK --set-mark 3 -p tcp -s 192.168.31.5 -m multiport --dports 80,443
ip rule add fwmark 3 table 2
ip route add default via 192.168.31.123 dev br-lan table 2

Next on Linux on which green-tunnel is installed:

sysctl -w net.ipv4.ip_forward=1
sysctl -w net.ipv4.conf.all.send_redirects=0
iptables -t nat -I PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables -t nat -I PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8080

green-tunnel started: gt --ip 192.168.31.123 --port 8080 --verbose 'green-tunnel:*'
Packets leave and arrive at the green-tunnel
but he writes errors:

  green-tunnel:proxy Error: Unsupported request:  +640ms
  green-tunnel:proxy Error: Unsupported request:  +3s
  green-tunnel:proxy Error: Unsupported request:  +4s

and so on endlessly, as a result there is no Internet.

What am I doing wrong? How can I forward one client to a proxy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant