open stack ssh log ing
Hi
After hours of running round the server I was wondering if someone could help
when I ssh in to the virtual instance from host (openstack box) the packet comes from 10.3.97.1 and uses the br100 device. if i carry out an ssh from the 10.3.105 network the ssh comes in on eth0 but then doesnt get forward to br100 or 10.3.97.1.
I have tried a variety of nat rules to move this show below
iptables -A FORWARD -i eth0 -o br100
iptables -t nat -A PREROUTING -p tcp -d 10.3.97.0/24 -j DNAT --to 10.3.97.1
iptables -t nat -A POSTROUTING -i eth0 -d 10.3.97.0/24 -o br100 -j SNAT --to 10.3.97.1
the output of brctl is as follows
bridge name bridge id STP enabled interfaces
br100 8000.00259096fba9 no eth1
vnet0
vnet1
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.11.105.1 0.0.0.0 UG 100 0 0 eth0
10.11.97.0 10.11.97.1 255.255.255.0 UG 0 0 0 br100
10.11.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
ifconfig
br100 Link encap:Ethernet HWaddr 00:25:90:96:fb:a9
inet addr:10.3.97.1 Bcast:10.3.97.31 Mask:255.255.255.224
inet6 addr: fe80::5459:a4ff:feab:c0f2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1830 errors:0 dropped:0 overruns:0 frame:0
TX packets:1893 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:199310 (199.3 KB) TX bytes:229942 (229.9 KB)
eth0 Link encap:Ethernet HWaddr 00:25:90:96:fb:a8
inet addr:10.3.105.28 Bcast:10.3.105.255 Mask:255.255.255.0
inet6 addr: fe80::225:90ff:fe96:fba8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:170266 errors:0 dropped:1805 overruns:0 frame:0
TX packets:4658 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15226720 (15.2 MB) TX bytes:754440 (754.4 KB)
Memory:dfd20000-dfd40000
eth1 Link encap:Ethernet HWaddr 00:25:90:96:fb:a9
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
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:dfd00000-dfd20000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:135460 errors:0 dropped:0 overruns:0 frame:0
TX packets:135460 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:91334869 (91.3 MB) TX bytes:91334869 (91.3 MB)
vnet0 Link encap:Ethernet HWaddr fe:16:3e:6e:2d:d9
inet6 addr: fe80::fc16:3eff:fe6e:2dd9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:121 errors:0 dropped:0 overruns:0 frame:0
TX packets:207 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:16758 (16.7 KB) TX bytes:14122 (14.1 KB)
vnet1 Link encap:Ethernet HWaddr fe:16:3e:62:f7:8b
inet6 addr: fe80::fc16:3eff:fe62:f78b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1906 errors:0 dropped:0 overruns:0 frame:0
TX packets:2020 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:224910 (224.9 KB) TX bytes:243540 (243.5 KB)
If anyone has any ideas it would be much appreciated
|