Skip to content

Commit

Permalink
Add 8443 to forward port
Browse files Browse the repository at this point in the history
  • Loading branch information
Pongsakorn Sommalai committed Jul 24, 2023
1 parent 080fa36 commit 76733f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/org/proxydroid/ProxyDroidService.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,18 @@ public class ProxyDroidService extends Service {

final static String CMD_IPTABLES_REDIRECT_ADD_HTTP = "iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to 8123\n"
+ "iptables -t nat -A OUTPUT -p tcp --dport 443 -j REDIRECT --to 8123\n"
+ "iptables -t nat -A OUTPUT -p tcp --dport 8443 -j REDIRECT --to 8123\n"
+ "iptables -t nat -A OUTPUT -p tcp --dport 5228 -j REDIRECT --to 8123\n"
+ "iptables -t nat -A OUTPUT -p udp --dport 443 -j REDIRECT --to 8124\n"
+ "iptables -t nat -A OUTPUT -p udp --dport 8443 -j REDIRECT --to 8124\n"
+ "iptables -t nat -A OUTPUT -p udp --dport 5228 -j REDIRECT --to 8124\n";

final static String CMD_IPTABLES_DNAT_ADD_HTTP = "iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to-destination 127.0.0.1:8123\n"
+ "iptables -t nat -A OUTPUT -p tcp --dport 443 -j DNAT --to-destination 127.0.0.1:8123\n"
+ "iptables -t nat -A OUTPUT -p tcp --dport 8443 -j DNAT --to-destination 127.0.0.1:8123\n"
+ "iptables -t nat -A OUTPUT -p tcp --dport 5228 -j DNAT --to-destination 127.0.0.1:8123\n"
+ "iptables -t nat -A OUTPUT -p udp --dport 443 -j DNAT --to-destination 127.0.0.1:8124\n"
+ "iptables -t nat -A OUTPUT -p udp --dport 8443 -j DNAT --to-destination 127.0.0.1:8124\n"
+ "iptables -t nat -A OUTPUT -p udp --dport 5228 -j DNAT --to-destination 127.0.0.1:8124\n";

final static String CMD_IPTABLES_REDIRECT_ADD_SOCKS = "iptables -t nat -A OUTPUT -p tcp -j REDIRECT --to 8123\n";
Expand Down

0 comments on commit 76733f0

Please sign in to comment.