<div dir="ltr"><div>i change "<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:14.399999618530273px">Alice's physical IP" to 192.168.5.133</span></div><div>root@ubuntu:~# iptables -L -v</div>
<div>Chain INPUT (policy ACCEPT 1218 packets, 120K bytes)</div><div> pkts bytes target prot opt in out source destination </div><div> 0 0 ACCEPT udp -- virbr0 any anywhere anywhere udp dpt:domain</div>
<div> 0 0 ACCEPT tcp -- virbr0 any anywhere anywhere tcp dpt:domain</div><div> 0 0 ACCEPT udp -- virbr0 any anywhere anywhere udp dpt:bootps</div>
<div> 0 0 ACCEPT tcp -- virbr0 any anywhere anywhere tcp dpt:bootps</div><div><br></div><div>Chain FORWARD (policy ACCEPT 2 packets, 142 bytes)</div><div> pkts bytes target prot opt in out source destination </div>
<div> 0 0 ACCEPT all -- any virbr0 anywhere <a href="http://192.168.122.0/24">192.168.122.0/24</a> state RELATED,ESTABLISHED</div><div> 0 0 ACCEPT all -- virbr0 any <a href="http://192.168.122.0/24">192.168.122.0/24</a> anywhere </div>
<div> 0 0 ACCEPT all -- virbr0 virbr0 anywhere anywhere </div><div> 0 0 REJECT all -- any virbr0 anywhere anywhere reject-with icmp-port-unreachable</div>
<div> 0 0 REJECT all -- virbr0 any anywhere anywhere reject-with icmp-port-unreachable</div><div> 0 0 ACCEPT all -- eth1 eth0 <a href="http://192.168.5.0/24">192.168.5.0/24</a> <a href="http://10.4.0.0/24">10.4.0.0/24</a> </div>
<div> 0 0 ACCEPT all -- eth0 eth1 <a href="http://10.4.0.0/24">10.4.0.0/24</a> <a href="http://192.168.5.0/24">192.168.5.0/24</a> </div><div><br></div><div>Chain OUTPUT (policy ACCEPT 800 packets, 115K bytes)</div>
<div> pkts bytes target prot opt in out source destination </div><div>root@ubuntu:~# ping 192.168.5.133</div><div>PING 192.168.5.133 (192.168.5.133) 56(84) bytes of data.</div><div>^C</div>
<div>--- 192.168.5.133 ping statistics ---</div><div>4 packets transmitted, 0 received, 100% packet loss, time 3000ms</div><div><br></div><div>root@ubuntu:~# ifconfig eth1</div><div>eth1 Link encap:Ethernet HWaddr 00:0b:2f:57:58:24 </div>
<div> inet addr:192.168.5.1 Bcast:192.168.5.255 Mask:255.255.255.0</div><div> inet6 addr: fe80::20b:2fff:fe57:5824/64 Scope:Link</div><div> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</div>
<div> RX packets:4928 errors:0 dropped:0 overruns:0 frame:0</div><div> TX packets:450 errors:0 dropped:0 overruns:0 carrier:0</div><div> collisions:0 txqueuelen:1000 </div><div> RX bytes:303325 (303.3 KB) TX bytes:58532 (58.5 KB)</div>
<div><br></div><div>but Alice's ip cann't connect 192.168.5.1 gw :-(</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/9 Martin Willi <span dir="ltr"><<a href="mailto:martin@strongswan.org" target="_blank">martin@strongswan.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div class="im"><br>
> Sep 9 13:42:48 14[CHD] updown: iptables v1.4.12: host/network<br>
> `PH_IP_ALICE' not found<br>
<br>
</div>If you copy a raw updown script from the test suite, you'll have to<br>
replace some variables by the IP addresses of these hosts. PH_IP_ALICE<br>
stands for Alice's physical IP. It gets replaced automatically in the<br>
test suite, but you'll have to do this manually when copying such a<br>
file.<br>
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888">Martin<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>我爱臭豆腐<br>老老实实做人 认认真真做事<br><a href="mailto:email%3Ahao.wangbj@gmail.com" target="_blank">email:hao.wangbj@gmail.com</a>
</div>