Видео от DC++ СЕРВЕР В РОУТЕРЕ [DCBEELINEKZ] OPENWRT|LEDE
how to use dd-wrt router as a proxy client
code :
proxy
port 33338
network interface name eth1
----------------------------------- remember to modify the code
#!/bin/sh
PROXY_IP=
PROXY_PORT=33338
LAN_IP=`nvram get lan_ipaddr`
LAN_NET=$LAN_IP/`nvram get lan_netmask`
iptables -t nat -A PREROUTING -i eth1 -s $LAN_NET -d $LAN_NET -p tcp --dport 80 -j ACCEPT
iptables -t nat -A PREROUTING -i eth1 -s ! $PROXY_IP -p tcp --dport 80 -j DNAT --to $PROXY_IP:$PROXY_PORT
iptables -I FORWARD -i eth1 -o eth1 -d $PROXY_IP -p tcp --dport $PROXY_PORT -j ACCEPT