redirect traffic of wlan0 through v2ray http proxy

I have a Raspberry Pi with two interfaces.

  • eth0 is connected to router to internet.
  • wlan0 is acting as access point using hostapd and there is udhcpd service for wlan0.

I installed v2raya which connects to v2ray and creates socks proxy on port 20170 and http proxy on port 20171. I like to route wifi clients traffic through the v2ray proxy.

What should be the rules for iptables?

Asked By: Farzad X

||

I could solve this by modifying the answer to this question. I removed the parts for eth2 and changed eth1 to wlan0.

Answered By: Farzad X
Categories: Answers Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.