Re: packet forwarding.
Mike, Alex & others,
Sorry for the broken thread.
mb> 2) That joule knows the route to cantor (via dalton)
Just what I was missing; thanks!
Now, where to specify this route?
(1) "up route add ..." can not go in the eth0
stanza in /etc/network/interfaces because
tun0 is configured after eth0.
I wonder about adding a tun0 stanza to
/etc/network/interfaces.
(2) Perhaps a better candidate is the up
command in /etc/openvpn/myvpn.conf. Is
the following plausible?
joule:/etc/openvpn# cat myvpn.conf
# openvpn configuration for joule.
# Default protocol is udp.
# Default port is 1194.
# The following is dalton.pathology.ubc.ca.
remote 142.103.107.137
dev tun
ifconfig 10.4.0.1 10.4.0.2
verb 5
secret /root/key
up 'route add -host 172.24.1.2 gw 10.4.0.1; echo up'
down 'route del -host 172.24.1.2 gw 10.4.0.1; echo down'
If another route is added, I should find how
to continue the parameter over multiple lines.
Thanks, ... Peter E.
--
http://members.shaw.ca/peasthope/
http://carnot.yi.org/ = http://carnot.pathology.ubc.ca/
Reply to: