can't ping external network, all-in-one devstack

asked 2016-03-02 13:54:44 -0500

neptuns gravatar image

i have installated openstack with devstack in a single machine. This is my local.conf:

[[local|localrc]]
HOST_IP=192.168.0.100
LOGDAYS=2
SWIFT_REPLICAS=1
SWIFT_DATA_DIR=$DEST/data
FIXED_NETWORK_SIZE=256
## Neutron options
Q_USE_SECGROUP=True
FLOATING_RANGE="192.168.0.0/24"
FIXED_RANGE="10.0.0.0/24"
Q_FLOATING_ALLOCATION_POOL=start=192.168.0.200,end=192.168.0.220
PUBLIC_NETWORK_GATEWAY="192.168.0.199"
Q_L3_ENABLED=True
PUBLIC_INTERFACE=wlan0
NETWORK_GATEWAY=10.0.0.1
#neutron
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service tempest
Q_L3_ENABLED=True
# Open vSwitch provider networking configuration
Q_USE_PROVIDERNET_FOR_PUBLIC=True
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public:br-ex
Q_USE_PROVIDERNET_FOR_PUBLIC=True

I have added both the TCP 22 22 0.0.0.0/0 and the ICMP -1 -1 0.0.0.0/0 in the security settings, so i can ping my vm, but i can't external network from this.

I have launched

sudo iptables -t nat -A POSTROUTING -o  wlan0 -j MASQUERADE

without result.

My ifconfig:

br-ex     Link encap:Ethernet    
      indirizzo inet:192.168.0.100  Bcast:192.168.0.255  Maschera:255.255.255.0
      indirizzo inet6: fe80::4001:31ff:fe37:6ef9/64 Scope:Link
      indirizzo inet6: 2001:db8::2/64 Scope:Global
      UP BROADCAST RUNNING PROMISC  MTU:1500  Metric:1
      RX packets:64633 errors:0 dropped:0 overruns:0 frame:0
      TX packets:51068 errors:0 dropped:0 overruns:0 carrier:0
      collisioni:0 txqueuelen:0 
      Byte RX:36469614 (36.4 MB)  Byte TX:7810989 (7.8 MB)

  br-int    Link encap:Ethernet   
      indirizzo inet6: fe80::bc36:8bff:fea2:adfb/64 Scope:Link
      UP BROADCAST RUNNING  MTU:1450  Metric:1
      RX packets:9374 errors:0 dropped:0 overruns:0 frame:0
      TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
      collisioni:0 txqueuelen:0 
      Byte RX:1570231 (1.5 MB)  Byte TX:828 (828.0 B)

   br-tun    Link encap:Ethernet  
      indirizzo inet6: fe80::74c3:8dff:fe6b:fe11/64 Scope:Link
      UP BROADCAST RUNNING  MTU:1500  Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
      collisioni:0 txqueuelen:0 
      Byte RX:0 (0.0 B)  Byte TX:828 (828.0 B)

eth0      Link encap:Ethernet  IndirizzoHW  
      UP BROADCAST MULTICAST  MTU:1500  Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
      collisioni:0 txqueuelen:1000 
      Byte RX:0 (0.0 B)  Byte TX:0 (0.0 B)

 lo        Link encap:Loopback locale  
      indirizzo inet:127.0.0.1  Maschera:255.0.0.0
      indirizzo inet6: ::1/128 Scope:Host
      UP LOOPBACK RUNNING  MTU:65536  Metric:1
      RX packets:875017 errors:0 dropped:0 overruns:0 frame:0
      TX packets:875017 errors:0 dropped:0 overruns:0 carrier:0
      collisioni:0 txqueuelen:0 
      Byte RX:493724330 (493.7 MB)  Byte TX:493724330 (493.7 MB)

    virbr0    Link encap:Ethernet  IndirizzoHW  
      indirizzo inet:192.168.122.1  Bcast:192.168.122.255  Maschera:255 ...
(more)
edit retag flag offensive close merge delete