> > I want to place a static route over a cipe connection which is not
> > always up:
> > > Server A: 192.168.10.1
> > > Gateway A: 126.96.36.199
> > > |
> > > | (internet)
> > > |
> > > Gateway B: 188.8.131.52
> > > Server B: 192.168.11.1
> > So Gateway A must have a static route to Server B over Gateway B. If
> > the cipe-link is established this is no problem. But what should I do if
> > cipe connection is down?
> It sounds like your whole approach is wrong. First of all, Gateway A does
> not need to have any routes to Server B set up by hand; the route is
> created automatically by cipe when the cipe connection goes up. If
Ok, that sounds logically :)
> anything, Gateway A should have a static route (with a high metric) that
> tells it to _drop_ packets addressed to Server B, so that when the cipe
> connection is down Gateway A doesn't try to send packets to Server B in
> the clear over its regular Internet link. The fact that Server B's
> address is in the private 192.168.x.x range might not prevent Gateway A
> from trying to reach it in this way.
> Second, you do need a static route in Server A, telling it that to reach
> Server B, the next hop should be to Gateway A. If Gateway A is the
> default router for Server A then you probably already have this route
Ok, thats the situation:
Server A: 192.168.10.1
Server B: 192.168.11.1
Server A has its default route over Gateway A:
0.0.0.0 192.168.10.254 0.0.0.0 UG 0 0 0 eth0
And Server B has its default route over Gateway B:
0.0.0.0 192.168.11.254 0.0.0.0 UG 0 0 0 eth0
In the /etc/cipe/ip-up from Gateway A is:
/sbin/route add -net 184.108.40.206 netmask 255.255.255.0 gw 220.127.116.11
In the /etc/cipe/ip-up from Gateway B:
/sbin/route add -net 18.104.22.168 netmask 255.255.255.0 gw 22.214.171.124
So. Thats the situation.
In fact the CIPE tunnel is loaded when the server boots. But if the internet
connection is dropped and someone from 192.168.11.1 pings 192.168.10.1
then all packets were dropped and the cipe connection wont be established
But: If someone pings 126.96.36.199 from 192.168.11.1 then the cipe connection
will be immediately established.
What is wrong?
> > I can not place a route over a none existing device. So a user on Server
> > has no chance to establish the cipe connection when pinging Server B.
> A user on Server A has no way to establish the cipe connection at all.
> That can only be done on Gateway A.
> > Is there a solution for this problem? The ip-up is not very useful for
> > matter,
> > because it will be startet after the link is established.
> You should start the cipe connection when the Gateway computers boot. It
> should remain up permanently; that way users on Server A won't have to
> worry about establishing the connection.
> > This commands fails on Gateway A if the cipe link is down:
> > route add -net 192.168.11.0 netmask 255.255.255.0 gw 188.8.131.52
> Your command is completely inappropriate. In fact, it amounts to telling
> Gateway A that it can reach Server B without using the cipe link at all!
> Repeating what I said earlier, you shouldn't need to add any routes on
> Gateway A.
> > To force the cipe link to be up the whole day is no solution because the
> > internet connection is not flat and should only be established on
> Not at all. The cipe connection can remain up even when the internet
> connection is down. Under normal circumstances, if there is no traffic
> going over the cipe link, then it won't send any packets over the internet
> link. (You may have to turn off cipe's internal ping to make this work.)
> All you will need to do is make sure that when someone does try to send
> data over the cipe link, and cipe then tries to send an encrypted packet
> over the internet link, that the Gateway's internet connection does come
> up automatically.
> Alan Stern
> Message sent by the cipe-l,AT,inka,DOT,de mailing list.
> Unsubscribe: mail majordomo,AT,inka,DOT,de, "unsubscribe cipe-l" in body
> Other commands available with "help" in body to the same address.
> CIPE info and list archive: