Не могу понять где проблема скорее всего в iptables (С этим фаерволом плохо знаком) или с прокси. Если модем подключить к компьютеру интернет летает. А вот через роутер работает, но очень медленно. Подскажите где проблема. Пытался настроить трафик мимо прокси, не смог понять как это сделать, инет вообще переставал работать.
/etc/config/firewall
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option network 'lan'
config zone
option name 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
option network 'wan wan6'
config forwarding
option src 'lan'
option dest 'wan'
config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option target 'ACCEPT'
config include
option path '/etc/firewall.user'
config redirect
option name 'Transparent Proxy Redirect'
option src 'lan'
option proto 'tcp'
option src_dport '80'
option dest_ip '10.132.56.41'
option src_dip '!10.132.56.41'
option dest 'lan'
option dest_port '8888'
root@OpenWrt:~# cat /etc/config/firewall
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option network 'lan'
config zone
option name 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
option network 'wan wan6'
config forwarding
option src 'lan'
option dest 'wan'
config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option target 'ACCEPT'
config include
option path '/etc/firewall.user'
config redirect
option name 'Transparent Proxy Redirect'
option src 'lan'
option proto 'tcp'
option src_dport '80'
option dest_ip '10.132.56.41'
option src_dip '!10.132.56.41'
option dest 'lan'
option dest_port '8888'
действующие правила
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 delegate_input all — 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy DROP)
num target prot opt source destination
1 delegate_forward all — 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
1 delegate_output all — 0.0.0.0/0 0.0.0.0/0
Chain delegate_forward (1 references)
num target prot opt source destination
1 forwarding_rule all — 0.0.0.0/0 0.0.0.0/0 /* user chain for forwarding */
2 ACCEPT all — 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
3 zone_lan_forward all — 0.0.0.0/0 0.0.0.0/0
4 zone_wan_forward all — 0.0.0.0/0 0.0.0.0/0
5 reject all — 0.0.0.0/0 0.0.0.0/0
Chain delegate_input (1 references)
num target prot opt source destination
1 ACCEPT all — 0.0.0.0/0 0.0.0.0/0
2 input_rule all — 0.0.0.0/0 0.0.0.0/0 /* user chain for input */
3 ACCEPT all — 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
4 syn_flood tcp — 0.0.0.0/0 0.0.0.0/0 tcp flags:0x17/0x02
5 zone_lan_input all — 0.0.0.0/0 0.0.0.0/0
6 zone_wan_input all — 0.0.0.0/0 0.0.0.0/0
Chain delegate_output (1 references)
num target prot opt source destination
1 ACCEPT all — 0.0.0.0/0 0.0.0.0/0
2 output_rule all — 0.0.0.0/0 0.0.0.0/0 /* user chain for output */
3 ACCEPT all — 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
4 zone_lan_output all — 0.0.0.0/0 0.0.0.0/0
5 zone_wan_output all — 0.0.0.0/0 0.0.0.0/0
Chain forwarding_lan_rule (1 references)
num target prot opt source destination
Chain forwarding_rule (1 references)
num target prot opt source destination
Chain forwarding_wan_rule (1 references)
num target prot opt source destination
Chain input_lan_rule (1 references)
num target prot opt source destination
Chain input_rule (1 references)
num target prot opt source destination
Chain input_wan_rule (1 references)
num target prot opt source destination
Chain output_lan_rule (1 references)
num target prot opt source destination
Chain output_rule (1 references)
num target prot opt source destination
Chain output_wan_rule (1 references)
num target prot opt source destination
Chain reject (3 references)
num target prot opt source destination
1 REJECT tcp — 0.0.0.0/0 0.0.0.0/0 reject-with tcp-reset
2 REJECT all — 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
Chain syn_flood (1 references)
num target prot opt source destination
1 RETURN tcp — 0.0.0.0/0 0.0.0.0/0 tcp flags:0x17/0x02 limit: avg 25/sec burst 50
2 DROP all — 0.0.0.0/0 0.0.0.0/0
Chain zone_lan_dest_ACCEPT (2 references)
num target prot opt source destination
1 ACCEPT all — 0.0.0.0/0 0.0.0.0/0
Chain zone_lan_forward (1 references)
num target prot opt source destination
1 forwarding_lan_rule all — 0.0.0.0/0 0.0.0.0/0 /* user chain for forwarding */
2 zone_wan_dest_ACCEPT all — 0.0.0.0/0 0.0.0.0/0 /* forwarding lan -> wan */
3 ACCEPT all — 0.0.0.0/0 0.0.0.0/0 ctstate DNAT /* Accept port forwards */
4 zone_lan_dest_ACCEPT all — 0.0.0.0/0 0.0.0.0/0
Chain zone_lan_input (1 references)
num target prot opt source destination
1 input_lan_rule all — 0.0.0.0/0 0.0.0.0/0 /* user chain for input */
2 ACCEPT all — 0.0.0.0/0 0.0.0.0/0 ctstate DNAT /* Accept port redirections */
3 zone_lan_src_ACCEPT all — 0.0.0.0/0 0.0.0.0/0
Chain zone_lan_output (1 references)
num target prot opt source destination
1 output_lan_rule all — 0.0.0.0/0 0.0.0.0/0 /* user chain for output */
2 zone_lan_dest_ACCEPT all — 0.0.0.0/0 0.0.0.0/0
Chain zone_lan_src_ACCEPT (1 references)
num target prot opt source destination
1 ACCEPT all — 0.0.0.0/0 0.0.0.0/0
Chain zone_wan_dest_ACCEPT (2 references)
num target prot opt source destination
1 ACCEPT all — 0.0.0.0/0 0.0.0.0/0
Chain zone_wan_dest_REJECT (1 references)
num target prot opt source destination
1 reject all — 0.0.0.0/0 0.0.0.0/0
Chain zone_wan_forward (1 references)
num target prot opt source destination
1 forwarding_wan_rule all — 0.0.0.0/0 0.0.0.0/0 /* user chain for forwarding */
2 ACCEPT all — 0.0.0.0/0 0.0.0.0/0 ctstate DNAT /* Accept port forwards */
3 zone_wan_dest_REJECT all — 0.0.0.0/0 0.0.0.0/0
Chain zone_wan_input (1 references)
num target prot opt source destination
1 input_wan_rule all — 0.0.0.0/0 0.0.0.0/0 /* user chain for input */
2 ACCEPT udp — 0.0.0.0/0 0.0.0.0/0 udp dpt:68 /* Allow-DHCP-Renew */
3 ACCEPT icmp — 0.0.0.0/0 0.0.0.0/0 icmptype 8 /* Allow-Ping */
4 ACCEPT all — 0.0.0.0/0 0.0.0.0/0 ctstate DNAT /* Accept port redirections */
5 zone_wan_src_REJECT all — 0.0.0.0/0 0.0.0.0/0
Chain zone_wan_output (1 references)
num target prot opt source destination
1 output_wan_rule all — 0.0.0.0/0 0.0.0.0/0 /* user chain for output */
2 zone_wan_dest_ACCEPT all — 0.0.0.0/0 0.0.0.0/0
Chain zone_wan_src_REJECT (1 references)
num target prot opt source destination
1 reject all — 0.0.0.0/0 0.0.0.0/0
/var/etc/tinyproxy.conf
### AUTOGENERATED CONFIGURATION
### DO NOT EDIT
### SEE /etc/config/tinyproxy INSTEAD
User nobody
Group nogroup
Port 8888
Timeout 600
DefaultErrorFile «/usr/share/tinyproxy/default.html»
StatHost «127.0.0.1»
StatFile «/usr/share/tinyproxy/stats.html»
LogFile «/var/log/tinyproxy.log»
Syslog Off
LogLevel Info
MaxClients 10
MinSpareServers 5
MaxSpareServers 20
StartServers 10
MaxRequestsPerChild 0
Allow 127.0.0.1
Allow 192.168.1.0/24
Allow 10.132.56.0/24
ViaProxyName «tinyproxy»
FilterURLs Off
FilterExtended Off
FilterCaseSensitive Off
FilterDefaultDeny No
ConnectPort 443
ConnectPort 563