VDSPlanet.ru Making the difference in VDS Hosting
 
Welcome, Guest. Please login or register.
September 26, 2021, 10:35:48 AM
1655 Posts in 325 Topics by 286 Members
Latest Member: emeqac
  Show Posts
Pages: [1] 2 3
1  VDSPlanet - Русский (Russian) / Проблемы и их решение / VPN on: September 04, 2009, 07:43:33 AM
Доброго времени суток!
Ребята плиз направьте на правильное русло...
#/etc/ppp/pptpd-options
Code:
name pptpd
ms-dns 4.2.2.2
ms-dns 209.250.241.11
refuse-pap
require-chap
refuse-mschap
refuse-mschap-v2
proxyarp
nodefaultroute
lock
mtu 1470
mru 1470
auth
nobsdcomp
ipx
ipx-network 4
ipx-node 1:0
ipx-routing 2
ipx-router-name svetik
ipxcp-accept-remote

#/etc/pptpd.conf
Code:
option /etc/ppp/pptpd-options
logwtmp
localip #IP своего VDS
remoteip #IP своего VDS

#/etc/ppp/chap-secrets
Code:
user pptpd pass *

перегруз
Code:
/etc/init.d/pptpd restart

Файерволл
Code:
touch /home/vpn-firewall.sh
chmod +X /home/vpn-firewall.sh
vim /home/vpn-firewall.sh

Туда вписал
Code:
#!/bin/sh
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/ip_dynaddr
iptables --flush
iptables --delete-chain
iptables --table nat --flush
iptables --table nat --delete-chain
iptables -P FORWARD ACCEPT
modprobe iptable_nat
modprobe ip_conntrack_ftp
modprobe ip_nat_ftp
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE

в автозагрузку
Code:
#!/bin/sh -e
/home/vpn-firewall.sh
exit 0

Ошибку дало
Code:
/home/vpn-firewall.sh: 3: cannot create /proc/sys/net/ipv4/ip_dynaddr: Operation not permitted
/home/vpn-firewall.sh: 4: iptables: not found
/home/vpn-firewall.sh: 5: iptables: not found
/home/vpn-firewall.sh: 6: iptables: not found
/home/vpn-firewall.sh: 7: iptables: not found
/home/vpn-firewall.sh: 8: iptables: not found
/home/vpn-firewall.sh: 12: iptables: not found

а при ps aux
Code:
root         1  0.0  1.3   1912   864 ?        Ss   01:55   0:00 init
syslog    7404  0.0  0.9   1940   644 ?        Ss   01:55   0:00 /sbin/syslogd -u syslog
root      7431  0.0  1.5   5312  1024 ?        Ss   01:55   0:00 /usr/sbin/sshd
root      7532  0.0  4.1   8204  2712 ?        Rs   01:56   0:00 sshd: [email protected]/0
root      7619  0.0  2.3   2856  1552 pts/0    Ss   01:56   0:00 -bash
root     22064  0.0  0.9   1892   596 ?        Ss   03:00   0:00 /usr/sbin/pptpd
root     22387  0.0  0.9   1780   600 ?        S    03:03   0:00 pptpd [мой айпи:0602 - 0000]
root     22390 30.0  1.6   2928  1068 ?        R    03:03  10:15 /usr/sbin/pppd local file /etc/ppp/pptpd-options 115200 айпи сервака:айпи сервака ipparam 78
root     30005  0.0  1.4   2368   920 pts/0    R+   03:37   0:00 ps aux

PS: пакеты поставил ipx ipxripd pptp pppd, ОС Ubuntu
Заранее благодарю...
2  VDSPlanet - Русский (Russian) / Отзывы и предложения клиентов / Re: оцените наш хостинг. on: September 03, 2009, 01:16:47 AM
Всем рекомендую, особенно новичкам, так как навстречу к Вам не пойдет не один саппорт как VDSPlanet, в Рунете по крайне мере не встречал, или будете за каждую мелочь отваливать бабло. Имею пока 2 VDS, сам новичек, но с помощью саппорта сделал все что надо...uptime-мое мнение, отлично, по крайне мере с этим проблем не было...
3  VDSPlanet - Русский (Russian) / Проблемы и их решение / Re: Проблема с обновлением OpenSSH on: August 10, 2009, 11:12:25 PM
Hi guys!
Спасибо за ответ, но все равно ругается:
Code:
shan:~# apt-get install build-essential
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  build-essential: Depends: libc6-dev but it is not going to be installed or
                            libc-dev
                   Depends: g++ (>= 4:4.1.1) but it is not going to be installed
E: Broken packages
4  VDSPlanet - Русский (Russian) / Проблемы и их решение / Проблема с обновлением OpenSSH on: August 10, 2009, 04:55:01 AM
Доброе время суток!
Начал обновление:
Code:
apt-get update
потом
Code:
chmod +x update.sh
sh update.sh
но дало ошибку
Code:
openssh-5.2p1/scp.0
openssh-5.2p1/ssh-add.0
openssh-5.2p1/ssh-agent.0
openssh-5.2p1/ssh-keygen.0
openssh-5.2p1/ssh-keyscan.0
openssh-5.2p1/ssh.0
openssh-5.2p1/sshd.0
openssh-5.2p1/sftp-server.0
openssh-5.2p1/sftp.0
openssh-5.2p1/ssh-rand-helper.0
openssh-5.2p1/ssh-keysign.0
openssh-5.2p1/sshd_config.0
openssh-5.2p1/ssh_config.0
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
Restarting OpenBSD Secure Shell server: sshd.
Спасибо.
5  VDSPlanet - Русский (Russian) / Проблемы и их решение / Re: Установка 3proxy-0.6 on: August 02, 2009, 05:56:42 AM
Благодарю.
Вы действительно правы, - "шерсти мало, визгу много" Smiley
6  VDSPlanet - Русский (Russian) / Проблемы и их решение / Re: Установка 3proxy-0.6 on: August 02, 2009, 05:40:05 AM
Уважаемый Модератор!
тогда вопрос лоб в лоб, как спецу: а между ними есть существенные отличия?
7  VDSPlanet - Русский (Russian) / Проблемы и их решение / Установка 3proxy-0.6 on: August 02, 2009, 04:50:56 AM
Доброе время суток!
3proxy 5ver - запустилась - VDSPlanet - спасибо!
но у меня не запускается 3proxy-0.6...код прилагается, заранее благодарю, сильно тапочками не бейте)))
Code:
3proxy.c: At top level:
3proxy.c:1721: error: expected ')' before '*' token
3proxy.c: In function 'main':
3proxy.c:1783: error: 'FILE' undeclared (first use in this function)
3proxy.c:1783: error: 'fp' undeclared (first use in this function)
3proxy.c:1783: error: invalid operands to binary * (have 'struct commands *' and 'struct commands *')
3proxy.c:1783: warning: statement with no effect
3proxy.c:1794: error: 'struct extparam' has no member named 'stringtable'
3proxy.c:1794: warning: statement with no effect
3proxy.c:1896: warning: incompatible implicit declaration of built-in function 'strdup'
3proxy.c:1896: error: 'struct extparam' has no member named 'stringtable'
3proxy.c:1896: error: cannot convert to a pointer type
3proxy.c:1896: warning: null argument where non-null required (argument 1)
3proxy.c:1898: warning: statement with no effect
3proxy.c:1900: error: 'stdin' undeclared (first use in this function)
3proxy.c:1900: warning: statement with no effect
3proxy.c:1905: warning: incompatible implicit declaration of built-in function 'fprintf'
3proxy.c:1905: error: 'stderr' undeclared (first use in this function)
3proxy.c:1912: error: 'struct extparam' has no member named 'stringtable'
3proxy.c:1912: error: 'struct extparam' has no member named 'stringtable'
3proxy.c:1912: warning: format '%s' expects type 'char *', but argument 3 has type 'struct commands'
3proxy.c:1912: warning: format '%s' expects type 'char *', but argument 4 has type 'struct commands'
3proxy.c:1917: warning: implicit declaration of function 'pthread_mutex_init'
3proxy.c:1917: error: 'bandlim_mutex' undeclared (first use in this function)
3proxy.c:1918: error: 'hash_mutex' undeclared (first use in this function)
3proxy.c:1919: error: 'tc_mutex' undeclared (first use in this function)
3proxy.c:1920: error: 'pwl_mutex' undeclared (first use in this function)
3proxy.c:1928: error: 'writable' undeclared (first use in this function)
3proxy.c:1946: warning: implicit declaration of function 'signal'
3proxy.c:1946: error: 'SIGCONT' undeclared (first use in this function)
3proxy.c:1947: error: 'SIGTERM' undeclared (first use in this function)
3proxy.c:1948: error: 'SIGUSR1' undeclared (first use in this function)
3proxy.c:1949: error: 'SIGPIPE' undeclared (first use in this function)
3proxy.c:1949: error: 'SIG_IGN' undeclared (first use in this function)
make[1]: *** [3proxy.o] Error 1
make[1]: Leaving directory `/home/shanproxy6/3proxy-0.6/src'
make: *** [all] Error 2
ненай, но мое предположение, что гдето указан путь, именно порядочность распаковывания директории...
8  VDSPlanet - Русский (Russian) / Проблемы и их решение / Re: Установка FTP on: August 01, 2009, 12:51:05 AM
ОГРОМНЕЙШЕЕ ВАМ СПАСИБО, Я НАКОНЕЦ ТО РОДИЛ! Grin
под другим пользователем зашла...
но почуму не заходит под root, или это не так важно?
Для меня тема закрыта! Thank you guys!
9  VDSPlanet - Русский (Russian) / Проблемы и их решение / Re: Установка FTP on: August 01, 2009, 12:01:45 AM
Доброе время суток!
Code:
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#
# Run standalone?  vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=YES
#
# Run standalone with IPv6?
# Like the listen parameter, except vsftpd will listen on an IPv6 socket
# instead of an IPv4 one. This parameter and the listen parameter are mutually
# exclusive.
#listen_ipv6=YES
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
#local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories.  See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
#chroot_local_user=YES
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
#
# Debian customization
#
# Some of vsftpd's settings don't fit the Debian filesystem layout by
# default.  These settings are more Debian-friendly.
#
# This option should be the name of a directory which is empty.  Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/vsftpd.pem

Большое Вам спасибо за помощь! и сории за мои непонятки...
Человек может допустить ошибку, его облагораживает, если он ее признает, но давжды облагораживает, если он ее исправит Smiley
10  VDSPlanet - Русский (Russian) / Проблемы и их решение / Re: Установка FTP on: July 31, 2009, 07:53:18 PM
/etc/vsftpd.conf
Code:
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
может шляпа в этой строке? я перепробываю все карианты, но не могу войти ftp...но факт ftp-сервак запущен Huh
11  VDSPlanet - Русский (Russian) / Проблемы и их решение / Re: Установка FTP on: July 31, 2009, 05:30:30 PM
Доброе время суток!
вот еще один момент: Установка на CentOS и Fedora
Code:
yum install vsftpd
-bash: yum: command not found
признаюсь, до этого я ее пропустил..
12  VDSPlanet - Русский (Russian) / Проблемы и их решение / Re: Установка FTP on: July 31, 2009, 10:34:43 AM
ok
ввожу root
ввожу пароль
потом снова страшивает  заново и по кругу

Welcome to Core FTP, release ver 2.1, build 1612 (U) -- © 2003-2009
WinSock 2.0
Mem -- 2,086,880 KB, Virt -- 2,097,024 KB
Started on Friday July 31, 2009 at 10:59:AM
Resolving 209.250.241.111... 
209.250.241.111 connecting... 
220 (vsFTPd 2.0.5) 
SFTP connection error - The current connection has timeout
Can't establish connection --> 209.250.241.111:21 @ Fri Jul 31 11:00:36 2009   (10038-1460)
13  VDSPlanet - Русский (Russian) / Проблемы и их решение / Re: Установка FTP on: July 31, 2009, 10:18:59 AM
Против поддержки как и против Вас я не имею нечего против...
14  VDSPlanet - Русский (Russian) / Проблемы и их решение / Re: Установка FTP on: July 31, 2009, 10:01:11 AM
 Huh
Code:
shan:/#
- это мой root, то есть ввожу - shan
пасверд
Host/IP выше Вами упомянут
21портом и FTP вообще некак
22 и  SFTP - коннект есть, но жалуется на логин и пароль
15  VDSPlanet - Русский (Russian) / Проблемы и их решение / Re: Установка FTP on: July 31, 2009, 09:36:56 AM
вот как бы все ок, коннект и юзернейм принял, потом у меня пре-ентерид пасворд и все...ввожу не входит
Pages: [1] 2 3