Koozali.org: home of the SME Server

Openvpn

guest22

Openvpn
« Reply #15 on: October 26, 2004, 11:44:32 PM »
As uasual, I humbly bow for you 'oh all mighty bit busters' being able to arrange bits in such a way it actually it becomes something USEFULL!

;-)
RequestedDeletion

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Openvpn
« Reply #16 on: October 27, 2004, 08:34:03 AM »
Alright - Add the office.up with this content (del rather than add):

#!/bin/bash
route del -net 192.168.100.0 netmask 255.255.255.0 gw $5

and add 192.168.100.0 mask 255.255.255.0 but with what gateway? As this is a seperate interface (tap0) its real gateway would be 192.168.1.1 (default system gateway). This is not valid as the GW should be in the same net. Should it be 192.168.100.1?

duncan

Openvpn
« Reply #17 on: October 27, 2004, 09:17:13 AM »
Hi,

This is one I am using here. Its a network <=> network setup but it might shed some clues.

Code: [Select]
!/bin/bash
route del -net 10.1.0.0 netmask 255.255.255.0 gw 10.0.0.1
route del -net 192.168.1.0 netmask 255.255.255.0 gw 10.0.0.1
route add -net 192.168.1.0 netmask 255.255.255.0 gw $5


The server is in server only mode - and eth0 is 10.0.0.1.

Regards Duncan