Hello everybody,
I'm a 5 years user of FreeBSD and good documentations and already asked questions in community support forums, have converted me to an expert installer of FreeBSD for servers.
The already asked questions in forums and the documentations of FreeBSD solved all of my problems until now. So this is the first time I'm posting here to ask you experts a question.
Recently I've bought a new cheap FreeBSD VPS from nqhost.com and tried to configure it as a PPTP VPN server. After many attempts I have successfully installed and configured PPTP and MPD5 on it and successfully connected from a Windows XP client to my new VPN server.
But I cannot configure it as an Internet gateway. I can ping server but not outside hosts. The Internet connection of the server is OK.
So, I'm sending my configuration files here to anyone who can help me to solve this issue. I have configured many gateways using IPNAT without any problem, but I need this way especially for this server.
Thank you very much,
Masoud Gheysari M.
/etc/rc.conf:
/etc/natd.conf:
/usr/local/etc/mpd5/mpd.conf:
uname -a:
/usr/src/sys/i386/conf/KARSHA is attached to post.
I'm a 5 years user of FreeBSD and good documentations and already asked questions in community support forums, have converted me to an expert installer of FreeBSD for servers.
The already asked questions in forums and the documentations of FreeBSD solved all of my problems until now. So this is the first time I'm posting here to ask you experts a question.
Recently I've bought a new cheap FreeBSD VPS from nqhost.com and tried to configure it as a PPTP VPN server. After many attempts I have successfully installed and configured PPTP and MPD5 on it and successfully connected from a Windows XP client to my new VPN server.
But I cannot configure it as an Internet gateway. I can ping server but not outside hosts. The Internet connection of the server is OK.
So, I'm sending my configuration files here to anyone who can help me to solve this issue. I have configured many gateways using IPNAT without any problem, but I need this way especially for this server.
Thank you very much,
Masoud Gheysari M.
/etc/rc.conf:
Code:
# -- sysinstall generated deltas -- # Mon Nov 1 19:39:55 2010
# Created: Mon Nov 1 19:39:55 2010
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
keymap="us.iso"
ifconfig_re0="inet 178.63.209.71 netmask 255.255.255.224"
defaultrouter="178.63.209.65"
sshd_enable="YES"
hostname="srv-b.karsha.biz"
#apache22_enable="YES"
#mysql_enable="YES"
squid_enable="YES"
mpd_enable="YES"
gateway_enable="YES"
firewall_enable="YES"
firewall_type="OPEN"
natd_enable="YES"
natd_interface="re0"
natd_flags="-f /etc/natd.conf"
/etc/natd.conf:
Code:
redirect_port tcp 127.0.0.1:3128 80
redirect_address 192.168.13.1 178.63.209.71
/usr/local/etc/mpd5/mpd.conf:
Code:
default:
load pptp_server
pptp_server:
set ippool add mypool 192.168.13.2 192.168.13.254
create bundle template B
set iface enable proxy-arp
set iface idle 1800
set iface enable tcpmssfix
set ipcp yes vjcomp
set ipcp ranges 192.168.13.1/32 ippool mypool
set ipcp dns 213.133.99.99 213.133.98.98
set bundle enable compression
set ccp yes mppc
set mppc yes e40
set mppc yes e128
set mppc yes stateless
set nat address 178.63.209.71
set iface enable nat
create link template L pptp
set link action bundle B
set link enable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
set link keep-alive 10 60
set link mtu 1460
set pptp self 0.0.0.0
set link enable incoming
uname -a:
Code:
FreeBSD srv-b.karsha.biz 8.1-RELEASE FreeBSD 8.1-RELEASE #2: Fri Nov 5 15:54:09 IRST 2010 root@srv-b.karsha.biz:/usr/obj/usr/src/sys/KARSHA i386
/usr/src/sys/i386/conf/KARSHA is attached to post.