hello, i need pppoe to be directly connected to the internet but this rules in my config file of Openwrt 7.09 doesn't do anything:
more precisely the ssh from 192.168.1.106:443 doesn't get forwarded
but dropbear ssh of Openwrt works fine on port 80(i can get acess to it from outside)
and i've got dyndns...
here my config file:
#ssh
#forward:dport=80:192.168.1.106:80
accept:proto=tcp dport=80
accept:proto=tcp dport=443
forward:dport=443:192.168.1.106:443
#sempron bit torrent for jamendo
forward:dport=6881:192.168.1.105:6881
forward:dport=6882:192.168.1.105:6882
#msn
forward:dport=6891:192.168.1.107:6891
forward:dport=6892:192.168.1.107:6892
# iptables -L -nv --line-number -t nat
Chain PREROUTING (policy ACCEPT 62 packets, 3039 bytes)
num pkts bytes target prot opt in out source destination
1 35 1740 NEW tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW
2 66 3255 prerouting_rule all -- * * 0.0.0.0/0 0.0.0.0/0
3 40 1961 prerouting_wan all -- ppp0 * 0.0.0.0/0 0.0.0.0/0
Chain POSTROUTING (policy ACCEPT 4 packets, 216 bytes)
num pkts bytes target prot opt in out source destination
1 39 1830 postrouting_rule all -- * * 0.0.0.0/0 0.0.0.0/0
2 35 1614 MASQUERADE all -- * ppp0 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
Chain NEW (1 references)
num pkts bytes target prot opt in out source destination
1 35 1740 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 limit: avg 50/sec burst 100
2 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain postrouting_rule (1 references)
num pkts bytes target prot opt in out source destination
Chain prerouting_rule (1 references)
num pkts bytes target prot opt in out source destination
Chain prerouting_wan (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 80
2 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 443
3 0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 443 to:192.168.1.106:443
4 0 0 DNAT udp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 443 to:192.168.1.106:443
5 0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 6881 to:192.168.1.105:6881
6 0 0 DNAT udp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 6881 to:192.168.1.105:6881
7 4 216 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 6882 to:192.168.1.105:6882
8 0 0 DNAT udp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 6882 to:192.168.1.105:6882
9 0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 6891 to:192.168.1.107:6891
10 0 0 DNAT udp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 6891 to:192.168.1.107:6891
11 0 0 DNAT tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 6892 to:192.168.1.107:6892
12 0 0 DNAT udp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 6892 to:192.168.1.107:6892
# iptables -L -nv --line-number
Chain INPUT (policy DROP 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
1 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 state INVALID
2 270 14006 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
3 0 0 DROP tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp option=!2 flags:0x02/0x02
4 59 3048 input_rule all -- * * 0.0.0.0/0 0.0.0.0/0
5 56 2699 input_wan all -- ppp0 * 0.0.0.0/0 0.0.0.0/0
6 59 3048 LAN_ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
7 0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
8 0 0 ACCEPT 47 -- * * 0.0.0.0/0 0.0.0.0/0
9 13 636 REJECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 reject-with tcp-reset
10 43 2063 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
Chain FORWARD (policy DROP 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
1 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 state INVALID
2 63 3240 TCPMSS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 TCPMSS clamp to PMTU
3 1706 1041K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
4 52 2740 forwarding_rule all -- * * 0.0.0.0/0 0.0.0.0/0
5 7 407 forwarding_wan all -- ppp0 * 0.0.0.0/0 0.0.0.0/0
6 0 0 ACCEPT all -- br-lan br-lan 0.0.0.0/0 0.0.0.0/0
7 45 2333 ACCEPT all -- br-lan ppp0 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy DROP 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
1 0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0 state INVALID
2 282 39673 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
3 0 0 output_rule all -- * * 0.0.0.0/0 0.0.0.0/0
4 0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
5 0 0 REJECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 reject-with tcp-reset
6 0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
Chain LAN_ACCEPT (1 references)
num pkts bytes target prot opt in out source destination
1 56 2699 RETURN all -- ppp0 * 0.0.0.0/0 0.0.0.0/0
2 0 0 RETURN all -- eth0.1 * 0.0.0.0/0 0.0.0.0/0
3 3 349 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
Chain forwarding_rule (1 references)
num pkts bytes target prot opt in out source destination
Chain forwarding_wan (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 ACCEPT tcp -- * * 0.0.0.0/0 192.168.1.106 tcp dpt:443
2 0 0 ACCEPT udp -- * * 0.0.0.0/0 192.168.1.106 udp dpt:443
3 0 0 ACCEPT tcp -- * * 0.0.0.0/0 192.168.1.105 tcp dpt:6881
4 0 0 ACCEPT udp -- * * 0.0.0.0/0 192.168.1.105 udp dpt:6881
5 6 312 ACCEPT tcp -- * * 0.0.0.0/0 192.168.1.105 tcp dpt:6882
6 1 95 ACCEPT udp -- * * 0.0.0.0/0 192.168.1.105 udp dpt:6882
7 0 0 ACCEPT tcp -- * * 0.0.0.0/0 192.168.1.107 tcp dpt:6891
8 0 0 ACCEPT udp -- * * 0.0.0.0/0 192.168.1.107 udp dpt:6891
9 0 0 ACCEPT tcp -- * * 0.0.0.0/0 192.168.1.107 tcp dpt:6892
10 0 0 ACCEPT udp -- * * 0.0.0.0/0 192.168.1.107 udp dpt:6892
Chain input_rule (1 references)
num pkts bytes target prot opt in out source destination
Chain input_wan (1 references)
num pkts bytes target prot opt in out source destination
1 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 80
2 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 443
Chain output_rule (1 references)
num pkts bytes target prot opt in out source destination
# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere state INVALID
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
DROP tcp -- anywhere anywhere tcp option=!2 flags:SYN/SYN
input_rule all -- anywhere anywhere
input_wan all -- anywhere anywhere
LAN_ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere
ACCEPT gre -- anywhere anywhere
REJECT tcp -- anywhere anywhere reject-with tcp-reset
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
Chain FORWARD (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere state INVALID
TCPMSS tcp -- anywhere anywhere tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
forwarding_rule all -- anywhere anywhere
forwarding_wan all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
Chain OUTPUT (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere state INVALID
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
output_rule all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
REJECT tcp -- anywhere anywhere reject-with tcp-reset
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
Chain LAN_ACCEPT (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
RETURN all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
Chain forwarding_rule (1 references)
target prot opt source destination
Chain forwarding_wan (1 references)
target prot opt source destination
ACCEPT tcp -- anywhere Ralink tcp dpt:443
ACCEPT udp -- anywhere Ralink udp dpt:443
ACCEPT tcp -- anywhere sempron tcp dpt:6881
ACCEPT udp -- anywhere sempron udp dpt:6881
ACCEPT tcp -- anywhere sempron tcp dpt:6882
ACCEPT udp -- anywhere sempron udp dpt:6882
ACCEPT tcp -- anywhere port4 tcp dpt:6891
ACCEPT udp -- anywhere port4 udp dpt:6891
ACCEPT tcp -- anywhere port4 tcp dpt:6892
ACCEPT udp -- anywhere port4 udp dpt:6892
Chain input_rule (1 references)
target prot opt source destination
Chain input_wan (1 references)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere multiport dports 80
ACCEPT tcp -- anywhere anywhere multiport dports 443
Chain output_rule (1 references)
target prot opt source destination
# ifconfig
br-lan Link encap:Ethernet HWaddr 00:14:BF:E1:DA:DD
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:328040 errors:0 dropped:0 overruns:0 frame:0
TX packets:265091 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:226178378 (215.7 MiB) TX bytes:58158144 (55.4 MiB)
eth0 Link encap:Ethernet HWaddr 00:14:BF:E1:DA:DD
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:264525 errors:0 dropped:0 overruns:0 frame:0
TX packets:323256 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:61827300 (58.9 MiB) TX bytes:235326651 (224.4 MiB)
Interrupt:4
eth0.0 Link encap:Ethernet HWaddr 00:14:BF:E1:DA:DD
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1100 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:66599 (65.0 KiB)
eth0.1 Link encap:Ethernet HWaddr 00:14:BF:E1:DA:DD
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:264530 errors:0 dropped:0 overruns:0 frame:0
TX packets:322170 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:57072871 (54.4 MiB) TX bytes:233946809 (223.1 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:36 errors:0 dropped:0 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2034 (1.9 KiB) TX bytes:2034 (1.9 KiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:79.11.205.5 P-t-P:192.168.100.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:264113 errors:0 dropped:0 overruns:0 frame:0
TX packets:321924 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:53882662 (51.3 MiB) TX bytes:225567405 (215.1 MiB)
wl0 Link encap:Ethernet HWaddr 00:14:BF:E1:DA:DF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:329452 errors:0 dropped:0 overruns:0 frame:40888
TX packets:267578 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:230960702 (220.2 MiB) TX bytes:60548031 (57.7 MiB)
Interrupt:2 Base address:0x5000