I have found that I need to add something like: !route -T 2 exec /usr/sbin/sshd
To the pertinent hostname.if file to make sure sshd is listening in addtional routing tables, but I do not know if this is best. On Mon, Dec 19, 2011 at 1:02 PM, PP;QQ P(P8P?P8QP8P= <chipits...@gmail.com> wrote: > Hello. > > I'm running multihomed OpenBSD server: > > vlan5/carp5 - default > vlan2/carp2 and vlan4/carp4 are connected to other ISPs. > > when there's no rdomain thing, everything seems to be working, except > all outgoing packets goes through vlan5/carp5. > > > so, I did > > f2n0:/root#cat /etc/hostname.vlan2 > vlan 2 vlandev trunk0 mtu 1300 > up > > f2n0:/root#cat /etc/hostname.carp2 > vhid 62 pass m1pass carpdev vlan2 X.X.X.X/26 rdomain 2 > !/sbin/route -T 2 add 0.0.0.0/0 X.X.X.Z > f2n0:/root#cat /etc/hostname.vlan4 > vlan 4 vlandev trunk0 mtu 1300 > up > > f2n0:/root#cat /etc/hostname.carp4 > vhid 64 pass m1pass carpdev vlan4 Y.Y.Y.Y/26 rdomain 4 > !/sbin/route -T 4 add 0.0.0.0/0 Y.Y.Y.Z > f2n0:/root# > > also, I did > > f2n0:/root#grep -v ^# /etc/pf.conf > > set skip on lo > > pass in vlan2 rtable 2 > pass in vlan4 rtable 4 > > pass > > > "ping"is working good, packets go out via appropriate interface. > however, ssh ends with "tcp rst", for example. > how can the reason for that "tcp rst" might be detected? > > am I doing anything wrong with rdomains? > > Ilya Shipitsin