Host Suse 11.1 Guest XP Contivity SecurID

Discussions related to using VirtualBox on Linux hosts.
Post Reply
juggler
Posts: 2
Joined: 5. Apr 2009, 23:02
Primary OS: openSUSE
VBox Version: OSE other
Guest OSses: XP

Host Suse 11.1 Guest XP Contivity SecurID

Post by juggler »

I need to configure the Nortel Contivity VPN Client to connect from an XP Guest through a secure tunnel in a Suse 11.1 Host.
The goal of this post is to write a simple bash script that will do the job for everybody.

There are several other threads on this topic but they are still not simple enough for me to make it work.

This is what I have built so far (credit to other posters in this forum - thanks)
However - it still doesn't work and there are lots of things I don't understand.
Please review, correct, enhance in anyway possible.

The plan is to run this script (from root?) on the host before starting up VB.

Thanks to everyone who can help -

Code: Select all

#!/bin/bash

# Delete the old bridge
#-----------------------
OLDBRIDGE=$(brctl show | wc -l)
if (( $OLDBRIDGE > 1 )); then
     echo "Bridge already created"

     ifconfig br0 down
     echo "Bridge is down"

     brctl delbr br0
     if (( ! $? )); then
         echo "Deleted bridge br0"
     else
         echo "bridge br0 NOT deleted"
     fi
fi

ifconfig eth1 down
ifconfig eth1  0.0.0.0  netmask  0.0.0.0  promisc        # Is promiscuity important ?
ifconfig eth1  hw ether 00:00:00:00:00:00

# Build a tunnel and configure it
#---------------------------------
openvpn --rmtun --dev tap0 2>&1  > /dev/null
openvpn --mktun --dev tap0

ifconfig tap0  down
ifconfig tap0  0.0.0.0  netmask  0.0.0.0
ifconfig tap0  hw ether 00:11:09:de:08:2a           # what is this address and how do I know it is right ?

chown root:vboxusers /dev/net/tun
chmod     g+rw       /dev/net/tun


# Build a bridge and configure it
#---------------------------------
brctl addbr br0

ifconfig br0 192.168.1.1 netmask 255.255.255.0
ifconfig br0 hw ether 00:11:09:de:08:2a
ifconfig br0 broadcast 192.168.1.255

brctl addif br0 eth1
brctl addif br0 tap0

route  add  -net 0.0.0.0  gw 192.168.1.254    # this is the address of my modem

# Now set up the Linux firewall to permit packets to flow freely
# over the newly created tap0 and br0 interfaces:
#--------------------------------------------------
iptables -A INPUT   -i tap0 -j ACCEPT
iptables -A INPUT   -i br0  -j ACCEPT
iptables -A FORWARD -i br0  -j ACCEPT

ifconfig eth1 up
ifconfig tap0 up
ifconfig br0  up

# End of File

Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Host Suse 11.1 Guest XP Contivity SecurID

Post by Sasquatch »

If that script is for setting up Host Interface Networking for the Guest, you no longer need it. VB 2.1.0 uses a new HIF method, in which you can select the physical NIC directly, instead of creating a TAP interface and bridge it.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
juggler
Posts: 2
Joined: 5. Apr 2009, 23:02
Primary OS: openSUSE
VBox Version: OSE other
Guest OSses: XP

Re: Host Suse 11.1 Guest XP Contivity SecurID

Post by juggler »

Thanks for the tip Sasquatch,
I got my securID tag checked out by an engineer and he found that it was not set correctly! After he fixed it the connection worked perfectly just like you said it would! VB is great!
Don't forget to set the Settings->Network->Attachedto: to be "Host Interface" and then select your real network device from the Host Interfaces listed in the pane below it.
The moral of this story is to jump through the easy hoops first! :D
Just for the record I am running Suse 11.1 (KDE 4.1) on AMD 64 bit with VirtualBox 2.1.4
Cheers
Juggler
Post Reply