Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Eleganter weg in das VPN der FH
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
hoschi
Advocate
Advocate


Joined: 19 Jul 2003
Posts: 2517
Location: Ulm, Germany, Europe

PostPosted: Sun Oct 08, 2006 6:36 pm    Post subject: Eleganter weg in das VPN der FH Reply with quote

Hallo,
normaler Praxisfall "Site-to-End"-VPN an der FH, habe den Namen, Passwort und den VPN-Server.
Ich habe teilweise die abenteuerlichsten VPN-HowTos gefunden, die sich derart krass unterscheiden dass ich schon an POSIX und LSB gezweifelt habe, darunter auch topaktuelle Tuts fuer BSD ist gerade mal in fuenf Zeilen das wichtigste erklaeren, und einen Totschlaeger fuer das "geliebte" Suse, und zwar fuer Suse 7.0 :roll:

Dank dem neuen Baselayout sollte es wie hier beschrieben ein Kinderspiel sein:
http://gentoo-wiki.com/HOWTO_Set_up_a_vpn_client_with_mppe_encryption

Ich wollte nur fragen ob ich noch etwas beachten soll, dass ganze sollte spaeter auf Anhieb funktionieren ;)
Gruss
_________________
Just you and me strogg!
Back to top
View user's profile Send private message
hoschi
Advocate
Advocate


Joined: 19 Jul 2003
Posts: 2517
Location: Ulm, Germany, Europe

PostPosted: Sun Oct 08, 2006 9:18 pm    Post subject: Reply with quote

Aus der Ferne funktioniert es schonmal irgendwie...nicht.

User: foo
Passwort: bar
VPN-Server: hallo.welt.de
VPNNAME: kann ich wohl frei waehlen, sagen wir "FH"
Verbindung ueber WLAN "eth1"

/etc/ppp/peers/VPNNAME
Code:

    pty "pptp hallo.welt.de --nolaunchpppd"
    name foo
    require-mschap-v2
    remotename FH
    file /etc/ppp/options.FH
    ipparam FH


/etc/ppp/options.VPNNAME
Quote:


#
# Lock the port
#
lock

#
# We don't need the tunnel server to authenticate itself
#
noauth

#
# Turn off transmission protocols we know won't be used
#
nobsdcomp
nodeflate

#
# We want MPPE
#
require-mppe
# mppe required,stateless <- use this one for patched kernel <2.6.15

#
# We want a sane mtu/mru
#
mtu 1000
mru 1000

#
# Time this thing out of it goes poof
#
lcp-echo-failure 10
lcp-echo-interval 10


/etc/ppp/chap-secrets
Quote:

foo FH bar *
FH foo bar *


/etc/conf.d/net
Quote:

config_eth0=( "192.168.1.xxx netmask 255.255.255.0" )
routes_eth0=( "default gw 192.168.1.1" )

# Wireless-Tools with wep-key
#modules=( "iwconfig" )
#preferred_aps=( "3Com" )
#config_3Com=( "192.168.1.xxx netmask 255.255.255.0" )
#routes_3Com=( "default gw 192.168.1.1" )
#key_3Com="[1] s:xxxxxxxxxx key [1] enc open"

# WPA-Supplicant with wpa-key
modules=( "wpa_supplicant" )
wpa_supplicant_eth1="-Dwext"
config_3Com=( "192.168.1.xxx netmask 255.255.255.0" )
routes_3Com=( "default gw 192.168.1.1" )

config_FH=( "dhcp" )
dhcp_FH="nodns"

config_ppp0=( "ppp" )
pppd_ppp0=(
"persist"
"call FH"
"holdoff 10"
"mru 1460"
"mtu 1460"
"idle 600"
)
link_ppp0="pty \"pptp hallo.welt.de --nolaunchpppd\""



emege --info:
Quote:
emerge --info
Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.18 i686)
=================================================================
System uname: 2.6.18 i686 Intel(R) Pentium(R) M processor 1.73GHz
Gentoo Base System version 1.12.5
Last Sync: Sun, 08 Oct 2006 20:20:02 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python: 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: [Not Present]
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.60
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X aac acpi alsa avahi beagle berkdb bitmap-fonts cairo cdinstall cdr cli cups dbus dlloader dri dvd dvdr dvdread eds elibc_glibc emboss encode fam fbcon firefox flac fortran gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal imap input_devices_evdev input_devices_keyboard ipv6 isdnlog jabber jpeg kernel_linux ldap libg++ libnotify libsexy mad mikmod mmx mono mp3 mpeg nautilus ncurses nls nodrm nptl nptlonly ogg openal opengl pam pcmcia pcre pdf pic png pnp ppds pppd quicktime readline reflection samba sdl session spell spl sqlite sse sse2 ssl startup-notification svg sysfs sysvipc tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_i810 vorbis wifi win32codecs x264 xcomposite xml xorg xv xvid zlib"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

_________________
Just you and me strogg!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum