LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-17-2013, 10:18 AM   #1
matdavey
LQ Newbie
 
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] FTP'ing via a .sh, can you log what happens? rjo98 Linux - Newbie 5 04-15-2012 09:07 PM
how to log ssh activity in /var/log/ssh/ssh*.log MrUmunhum Linux - Server 3 11-02-2011 03:25 AM
grep'ing and sed'ing chunks in bash... need help on speeding up a log parser. elinenbe Programming 4 04-22-2009 11:17 AM
ssh'ing an xbox kybishop Linux - Networking 8 01-26-2007 04:08 PM
ssh'ing to hostname hagbardc Linux - Software 4 06-21-2003 11:20 AM


All times are GMT -5. The time now is 06:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration