物好き者

物好き者が行ったことを載せています。

スポンサーサイト

上記の広告は1ヶ月以上更新のないブログに表示されています。
新しい記事を書く事で広告が消せます。

PageTop

LaFonera+を純正ファームに書き戻し3の補足

LaFonera+を純正ファームに書き戻し3 では、無線でPCと接続しました。

ネットワーク構成は次のとおりで、有線インターフェースがありません。

root@LamaBleu:/cifs# ifconfig
ath0 Link encap:Ethernet HWaddr 00:18:84:A2:0E:9D
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:16929 errors:0 dropped:0 overruns:0 frame:0
TX packets:7543 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:508239 (496.3 KiB) TX bytes:7821655 (7.4 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:28 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2312 (2.2 KiB) TX bytes:2312 (2.2 KiB)

wifi0 Link encap:Ethernet HWaddr 00:18:84:A2:0E:9D
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:115778 errors:0 dropped:0 overruns:0 frame:49552
TX packets:10663 errors:178 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:13767242 (13.1 MiB) TX bytes:8404519 (8.0 MiB)
Interrupt:3 Memory:b0000000-b00ffffc

root@LamaBleu:/cifs# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 ath0

有線インターフェースで接続できるか、やってみました。
まず、ath0を停止させます。

root@LamaBleu:/cifs# ifconfig ath0 down
root@LamaBleu:/cifs# ifconfig
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:28 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2312 (2.2 KiB) TX bytes:2312 (2.2 KiB)

root@LamaBleu:/cifs# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface


次に、eth0を有効にしました。
root@LamaBleu:/cifs# ifconfig eth0 up
root@LamaBleu:/cifs# ifconfig
eth0 Link encap:Ethernet HWaddr 00:18:84:A2:0E:9C
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1371 (1.3 KiB)
Interrupt:4 Base address:0x1000

eth0.0 Link encap:Ethernet HWaddr 00:18:84:A2:0E:9C
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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:1047 (1.0 KiB)

eth0.1 Link encap:Ethernet HWaddr 00:18:84:A2:0E:9C
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:324 (324.0 B)

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:28 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2312 (2.2 KiB) TX bytes:2312 (2.2 KiB)

root@LamaBleu:/cifs# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0.0

LANポートに192.168.1.1が設定されていますが、PCと通信が出来ません。
PCにはDHCPでIPアドレスが割り当てられません。また、PCに192.168.1.10を設定しましたが、通信できません。

iptableの設定を確認しましたが、ブロックしている様子もありません。
root@LamaBleu:/cifs# iptables -L -v
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 DROP all -- any any anywhere anywhere state INVALID
2976 143K ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED
0 0 DROP tcp -- any any anywhere anywhere tcp option=!2 flags:SYN/SYN
1888 122K input_rule all -- any any anywhere anywhere
0 0 input_wan all -- eth0.1 any anywhere anywhere
1888 122K LAN_ACCEPT all -- any any anywhere anywhere
0 0 ACCEPT icmp -- any any anywhere anywhere
0 0 ACCEPT gre -- any any anywhere anywhere
0 0 REJECT tcp -- any any anywhere anywhere reject-with tcp-reset
0 0 REJECT all -- any any anywhere anywhere reject-with icmp-port-unreachable

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 DROP all -- any any anywhere anywhere state INVALID
0 0 TCPMSS tcp -- any any anywhere anywhere tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU
0 0 ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED
0 0 forwarding_rule all -- any any anywhere anywhere
0 0 forwarding_wan all -- eth0.1 any anywhere anywhere
0 0 ACCEPT all -- ath0 ath0 anywhere anywhere
0 0 ACCEPT all -- ath0 eth0.1 anywhere anywhere

Chain OUTPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 DROP all -- any any anywhere anywhere state INVALID
7259 7691K ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED
86 6953 output_rule all -- any any anywhere anywhere
86 6953 ACCEPT all -- any any anywhere anywhere
0 0 REJECT tcp -- any any anywhere anywhere reject-with tcp-reset
0 0 REJECT all -- any any anywhere anywhere reject-with icmp-port-unreachable

Chain LAN_ACCEPT (1 references)
pkts bytes target prot opt in out source destination
0 0 RETURN all -- eth0.1 any anywhere anywhere
1888 122K ACCEPT all -- any any anywhere anywhere

Chain forwarding_rule (1 references)
pkts bytes target prot opt in out source destination

Chain forwarding_wan (1 references)
pkts bytes target prot opt in out source destination

Chain input_rule (1 references)
pkts bytes target prot opt in out source destination

Chain input_wan (1 references)
pkts bytes target prot opt in out source destination

Chain output_rule (1 references)
pkts bytes target prot opt in out source destination
root@LamaBleu:/cifs# iptables -t nat -L -v
Chain PREROUTING (policy ACCEPT 1858 packets, 116K bytes)
pkts bytes target prot opt in out source destination
1 48 NEW tcp -- any any anywhere anywhere state NEW
1858 116K prerouting_rule all -- any any anywhere anywhere
0 0 prerouting_wan all -- eth0.1 any anywhere anywhere

Chain POSTROUTING (policy ACCEPT 68 packets, 5761 bytes)
pkts bytes target prot opt in out source destination
67 4732 postrouting_rule all -- any any anywhere anywhere
0 0 MASQUERADE all -- any eth0.1 anywhere anywhere

Chain OUTPUT (policy ACCEPT 68 packets, 5761 bytes)
pkts bytes target prot opt in out source destination

Chain NEW (1 references)
pkts bytes target prot opt in out source destination
1 48 RETURN all -- any any anywhere anywhere limit: avg 50/sec burst 100
0 0 DROP all -- any any anywhere anywhere

Chain postrouting_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 (1 references)
pkts bytes target prot opt in out source destination


iptableの設定を削除しましたが、pingがエラーとなってしまいます。
無線で接続できるので、とりあえずまたの機会に考えることにします。
root@LamaBleu:/cifs# iptables -F
root@LamaBleu:/cifs# iptables -L -v
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain LAN_ACCEPT (0 references)
pkts bytes target prot opt in out source destination

Chain forwarding_rule (0 references)
pkts bytes target prot opt in out source destination

Chain forwarding_wan (0 references)
pkts bytes target prot opt in out source destination

Chain input_rule (0 references)
pkts bytes target prot opt in out source destination

Chain input_wan (0 references)
pkts bytes target prot opt in out source destination

Chain output_rule (0 references)
pkts bytes target prot opt in out source destination
root@LamaBleu:/cifs# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
ping: sendto: Operation not permitted

スポンサーサイト

PageTop

コメント


管理者にだけ表示を許可する
 

上記広告は1ヶ月以上更新のないブログに表示されています。新しい記事を書くことで広告を消せます。