Cezary napisał/a:A mają być? iptables -v -L zweryfikujesz czy one się zrobiły. A operator komórkowy tego nie blokuje?
Zanim bede sprawdzal operatora to musza ramki moje IPIP wychodzic z 3g-wan a one nie wychodza jak mam wlaczony tcpdump dopiero jak bede widzial je na 3g-wan i nie bedzie polaczenai to bede zastanawial sie czy operator filtruje je dalej.
Jak uzylem iptables -v -L to nie widze wpisu dla
iptables -t nat -I PREROUTING -p 4 -j DNAT --to 192.168.1.2
jako czyli dla ipencap
jak zrobilem iptables -L -v -t nat
i widac ze jest wpis ipencap
ale ramki moje nie chca wyjsc na 3g-wan bo tcpdump nie pokazuje tych ramke ale pokazuje moje ramki na eth0 i br-lan
------------------------------------------------------------
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 DNAT ipencap-- any any anywhere anywhere to:192.168.1.2
0 0 DNAT udp -- any any anywhere anywhere udp dpt:520 to:192.168.1.2
0 0 DNAT ipencap-- any any anywhere anywhere to:192.168.1.2
0 0 DNAT udp -- any any anywhere anywhere udp dpt:520 to:192.168.1.2
1 80 DNAT ipencap-- any any anywhere anywhere to:192.168.1.2
191 12377 delegate_prerouting all -- any any anywhere anywhere
0 0 DNAT ipencap-- any any anywhere anywhere to:192.168.1.2
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 21 packets, 1530 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 18 packets, 1302 bytes)
pkts bytes target prot opt in out source destination
949 65133 delegate_postrouting all -- any any anywhere anywhere
Chain MINIUPNPD (1 references)
pkts bytes target prot opt in out source destination
Chain delegate_postrouting (1 references)
pkts bytes target prot opt in out source destination
949 65133 postrouting_rule all -- any any anywhere anywhere /* user chain for postroutin
g */
3 288 zone_lan_postrouting all -- any br-lan anywhere anywhere
668 46148 zone_wan_postrouting all -- any 3g-wan anywhere anywhere
Chain delegate_prerouting (1 references)
pkts bytes target prot opt in out source destination
191 12377 prerouting_rule all -- any any anywhere anywhere /* user chain for prerouting
*/
188 12089 zone_lan_prerouting all -- br-lan any anywhere anywhere
3 288 zone_wan_prerouting all -- 3g-wan any anywhere anywhere
Chain pf_loopback_A (1 references)
pkts bytes target prot opt in out source destination
0 0 DNAT udp -- any any anywhere anywhere udp dpt:10094 to:192.168.1.2:10094
0 0 DNAT udp -- any any anywhere anywhere udp dpt:520 to:192.168.1.2:520
Chain pf_loopback_C (1 references)
pkts bytes target prot opt in out source destination
0 0 MASQUERADE udp -- any any 192.168.1.0/24 raspberrypi udp dpt:10094
0 0 MASQUERADE udp -- any any 192.168.1.0/24 raspberrypi udp dpt:520
Chain postrouting_lan_rule (1 references)
pkts bytes target prot opt in out source destination
Chain postrouting_rule (1 references)
pkts bytes target prot opt in out source destination
3 288 pf_loopback_C all -- any br-lan anywhere anywhere
Chain postrouting_wan_rule (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_lan_rule (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_rule (1 references)
pkts bytes target prot opt in out source destination
Chain prerouting_wan_rule (1 references)
pkts bytes target prot opt in out source destination
3 288 DNAT all -- 3g-wan any anywhere anywhere to:192.168.1.2
0 0 DNAT all -- 3g-wan any anywhere anywhere to:192.168.1.2
Chain zone_lan_postrouting (1 references)
pkts bytes target prot opt in out source destination
3 288 postrouting_lan_rule all -- any any anywhere anywhere /* user chain for postro
uting */
0 0 SNAT udp -- any any 192.168.1.0/24 raspberrypi udp dpt:10094 /* AXUDP94 (reflectio
n) */ to:192.168.1.1
0 0 SNAT udp -- any any 192.168.1.0/24 raspberrypi udp dpt:520 /* rip520 (reflection)
*/ to:192.168.1.1
Chain zone_lan_prerouting (1 references)
pkts bytes target prot opt in out source destination
0 0 pf_loopback_A all -- any any anywhere 93.154.175.7
83 5378 REDIRECT udp -- any any anywhere anywhere udp dpt:domain
0 0 REDIRECT tcp -- any any anywhere anywhere tcp dpt:domain
105 6711 prerouting_lan_rule all -- any any anywhere anywhere /* user chain for prerout
ing */
0 0 DNAT udp -- any any 192.168.1.0/24 93.154.175.7 udp dpt:10094 /* AXUDP94 (reflectio
n) */ to:192.168.1.2:10094
0 0 DNAT udp -- any any 192.168.1.0/24 93.154.175.7 udp dpt:520 /* rip520 (reflection)
*/ to:192.168.1.2:520
Chain zone_wan_postrouting (1 references)
pkts bytes target prot opt in out source destination
668 46148 postrouting_wan_rule all -- any any anywhere anywhere /* user chain for postro
uting */
668 46148 MASQUERADE all -- any any anywhere anywhere
Chain zone_wan_prerouting (1 references)
pkts bytes target prot opt in out source destination
3 288 MINIUPNPD all -- any any anywhere anywhere
0 0 REDIRECT tcp -- any any anywhere anywhere tcp dpt:2222 redir ports 2222
3 288 prerouting_wan_rule all -- any any anywhere anywhere /* user chain for prerout
ing */
0 0 DNAT udp -- any any anywhere anywhere udp dpt:10094 /* AXUDP94 */ to:192.
168.1.2:10094
0 0 DNAT udp -- any any anywhere anywhere udp dpt:520 /* rip520 */ to:192.168
.1.2:520
Pozdrawiam