Rich Freeman on 28 Sep 2014 15:09:00 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] OpenVPN Question


On Fri, Sep 26, 2014 at 10:49 PM, Rich Freeman
<r-plug@thefreemanclan.net> wrote:
> I have a routing question and I'm not quite sure how linux will handle
> this situation.
>

FYI, I was able to follow some recipes online and do this:
cite: http://serverfault.com/questions/225185/route-return-traffic-to-correct-gateway-depending-on-service

echo "101 outside" >> /etc/iproute2/rt_tables
ip route add default table outside via 192.168.0.102
ip rule add fwmark 1 table outside
iptables -t mangle -A OUTPUT -p tcp -m tcp --sport 22 -j MARK --set-mark 1

Now ssh connections go out over 192.168.0.102, and other connections
go out via the default route.

--
Rich
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug