Як настроїти sharing + proftpd система Debian

Предоставление авторизированного доступа к ресурсам
wowanv
Сообщения: 29
Зарегистрирован: Вт июл 22, 2008 11:47 am
Откуда: from Ternopil
Контактная информация:

Сообщение wowanv »

ABillS 0.40b

wowanv
Сообщения: 29
Зарегистрирован: Вт июл 22, 2008 11:47 am
Откуда: from Ternopil
Контактная информация:

Сообщение wowanv »

Може потрібно прописати в /etc/ppp/ip-up щоб піднімало цей скрипт:/etc/ppp/ip-pre-up?

ran
Сообщения: 2298
Зарегистрирован: Вс окт 21, 2007 2:29 pm

Сообщение ran »

после подключения покажи

Код: Выделить всё

tc -s -d qdisc ls dev ppp?
tc -s -d class ls dev ppp?
tc -s -d filter ls dev ppp? parent 1:
tc -s -d filter ls dev ppp? parent ffff:
вместо ? номер ифейса ppp ну и заодно уж

Код: Выделить всё

which tc

wowanv
Сообщения: 29
Зарегистрирован: Вт июл 22, 2008 11:47 am
Откуда: from Ternopil
Контактная информация:

Сообщение wowanv »

Показує таке:
debian:~# tc -s -d qdisc ls dev ppp1
qdisc pfifo_fast 0: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
Sent 24197 bytes 29 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
debian:~# tc -s -d class ls dev ppp1
debian:~# tc -s -d filter ls dev ppp1 parent 1:
debian:~# tc -s -d filter ls dev ppp1 parent ffff:
debian:~# which tc
/sbin/tc

wowanv
Сообщения: 29
Зарегистрирован: Вт июл 22, 2008 11:47 am
Откуда: from Ternopil
Контактная информация:

Сообщение wowanv »

а це пише коли розкоментований файл /etc/ppp/ip-up.local
debian:~# tc -s -d qdisc ls dev ppp1
qdisc htb 1: r2q 1 default 20 direct_packets_stat 0 ver 3.17
Sent 563710 bytes 1306 pkt (dropped 0, overlimits 732 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
qdisc sfq 10: parent 1:10 limit 128p quantum 1500b flows 128/1024 perturb 10sec
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
qdisc sfq 20: parent 1:20 limit 128p quantum 1500b flows 128/1024 perturb 10sec
Sent 563710 bytes 1306 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
qdisc ingress ffff: ----------------
Sent 772353 bytes 1314 pkt (dropped 55, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0

debian:~# tc -s -d class ls dev ppp1
class htb 1:1 root rate 64000bit ceil 64000bit burst 4Kb/8 mpu 0b overhead 0b cburst 1631b/8 mpu 0b overhead 0b level 7
Sent 563790 bytes 1308 pkt (dropped 0, overlimits 0 requeues 0)
rate 24bit 0pps backlog 0b 0p requeues 0
lended: 0 borrowed: 0 giants: 0
tokens: 519166 ctokens: 203776

class htb 1:10 parent 1:1 leaf 10: prio 1 quantum 8000 rate 64000bit ceil 64000bit burst 4Kb/8 mpu 0b overhead 0b cburst 1631b/8 mpu 0b overhead 0b level 0
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
lended: 0 borrowed: 0 giants: 0
tokens: 524286 ctokens: 208896

class htb 1:20 parent 1:1 leaf 20: prio 2 quantum 8000 rate 64000bit ceil 64000bit burst 4Kb/8 mpu 0b overhead 0b cburst 1631b/8 mpu 0b overhead 0b level 0
Sent 563790 bytes 1308 pkt (dropped 0, overlimits 0 requeues 0)
rate 24bit 0pps backlog 0b 0p requeues 0
lended: 1308 borrowed: 0 giants: 0
tokens: 519166 ctokens: 203776

debian:~# tc -s -d filter ls dev ppp1 parent 1:
filter protocol ip pref 10 u32
filter protocol ip pref 10 u32 fh 800: ht divisor 1
filter protocol ip pref 10 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:10 (rule hit 1309 success 0)
match 00100000/00ff0000 at 0 (success 0 )
filter protocol ip pref 10 u32 fh 800::801 order 2049 key ht 800 bkt 0 flowid 1:10 (rule hit 1309 success 0)
match 00010000/00ff0000 at 8 (success 0 )

debian:~# tc -s -d filter ls dev ppp1 parent ffff:
filter protocol ip pref 50 u32
filter protocol ip pref 50 u32 fh 800: ht divisor 1
filter protocol ip pref 50 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid :1 (rule hit 1319 success 1319)
match 00000000/00000000 at 12 (success 1319 )
police 0x4 rate 64000bit burst 12Kb mtu 2Kb action drop
ref 1 bind 1

Sent 772577 bytes 1319 pkts (dropped 0, overlimits 55)

ran
Сообщения: 2298
Зарегистрирован: Вс окт 21, 2007 2:29 pm

Сообщение ran »

ls -la /etc/ppp/ip-pre-up
cat /etc/ppp/ip-pre-up

wowanv
Сообщения: 29
Зарегистрирован: Вт июл 22, 2008 11:47 am
Откуда: from Ternopil
Контактная информация:

Сообщение wowanv »

Права до файла 0755 а швидкість так і не ріже!
:
debian:~# ls -la /etc/ppp/ip-pre-up
-rwxr-xr-x 1 root root 277 2008-11-08 11:54 /etc/ppp/ip-pre-up
debian:~# cat /etc/ppp/ip-pre-up
#!/bin/sh

TC="/sbin/tc"
TCQA="$TC qdisc add dev $IFNAME"
TCQD="$TC qdisc del dev $IFNAME"

$TCQD root &>/dev/null
$TCQD ingress &>/dev/null

$TCQA root handle 1: htb
$TCQA handle ffff: ingress

/usr/abills/libexec/linkupdown ipn up $IFNAME $PEERNAME $IPREMOTE OS=Linux
debian:~#

ran
Сообщения: 2298
Зарегистрирован: Вс окт 21, 2007 2:29 pm

Сообщение ran »

мож у тебя пппд какой древний и незнает про ип-пре-ап :shock: man pppd на предмет ip-pre-up

у меня например
man pppd писал(а): Pppd invokes the following scripts, if they exist. It is not an error if they don't exist.

/etc/ppp/auth-up
A program or script which is executed after the remote system successfully authenticates
itself. It is executed with the parameters

interface-name peer-name user-name tty-device speed

Note that this script is not executed if the peer doesn't authenticate itself, for example
when the noauth option is used.

/etc/ppp/auth-down
A program or script which is executed when the link goes down, if /etc/ppp/auth-up was previ‐
ously executed. It is executed in the same manner with the same parameters as
/etc/ppp/auth-up.

/etc/ppp/ip-pre-up
A program or script which is executed just before the ppp network interface is brought up.
It is executed with the same parameters as the ip-up script (below). At this point the
interface exists and has IP addresses assigned but is still down. This can be used to add
firewall rules before any IP traffic can pass through the interface. Pppd will wait for this
script to finish before bringing the interface up, so this script should run quickly.

/etc/ppp/ip-up
A program or script which is executed when the link is available for sending and receiving IP
packets (that is, IPCP has come up). It is executed with the parameters

interface-name tty-device speed local-IP-address remote-IP-address ipparam

/etc/ppp/ip-down
A program or script which is executed when the link is no longer available for sending and
receiving IP packets. This script can be used for undoing the effects of the /etc/ppp/ip-up
and /etc/ppp/ip-pre-up scripts. It is invoked in the same manner and with the same parame‐
ters as the ip-up script.

/etc/ppp/ipv6-up
Like /etc/ppp/ip-up, except that it is executed when the link is available for sending and
receiving IPv6 packets. It is executed with the parameters

interface-name tty-device speed local-link-local-address remote-link-local-address ipparam

/etc/ppp/ipv6-down
Similar to /etc/ppp/ip-down, but it is executed when IPv6 packets can no longer be transmit‐
ted on the link. It is executed with the same parameters as the ipv6-up script.

/etc/ppp/ipx-up
A program or script which is executed when the link is available for sending and receiving
IPX packets (that is, IPXCP has come up). It is executed with the parameters

interface-name tty-device speed network-number local-IPX-node-address remote-IPX-node-address
local-IPX-routing-protocol remote-IPX-routing-protocol local-IPX-router-name
remote-IPX-router-name ipparam pppd-pid

The local-IPX-routing-protocol and remote-IPX-routing-protocol field may be one of the fol‐
lowing:

NONE to indicate that there is no routing protocol
RIP to indicate that RIP/SAP should be used
NLSP to indicate that Novell NLSP should be used
RIP NLSP to indicate that both RIP/SAP and NLSP should be used

/etc/ppp/ipx-down
A program or script which is executed when the link is no longer available for sending and
receiving IPX packets. This script can be used for undoing the effects of the
/etc/ppp/ipx-up script. It is invoked in the same manner and with the same parameters as the
ipx-up script.
попробуй то что у тебя в ip-pre-up перенести в ip-up.local но если твой пппд ещё и окружени какое нада не устанавливает... то сам под него подстраивайся :D

wowanv
Сообщения: 29
Зарегистрирован: Вт июл 22, 2008 11:47 am
Откуда: from Ternopil
Контактная информация:

Сообщение wowanv »

ran писал(а): попробуй то что у тебя в ip-pre-up перенести в ip-up.local но если твой пппд ещё и окружени какое нада не устанавливает... то сам под него подстраивайся :D
Пробував та швидкість неріже обше!

wowanv
Сообщения: 29
Зарегистрирован: Вт июл 22, 2008 11:47 am
Откуда: from Ternopil
Контактная информация:

Сообщение wowanv »

Що порадите?

Ответить