Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] VPN with Netsystem, very slow



OK, I finally got Netsystem to work under linux, but it's far from perfect.
I'll start from begining, maybe I'll help someone, and maybe someone helps
me
First i got the kernel 2.6.3, included the support for ss2 card etc.
Then i downloaded dvb-apps from linuxtv, with szap i checked if it's ok,
signal was there... everything works.
Then i used xine, after inserting the channels conf in /.xine.
Channels work, great but what now?
The SAT-how to is pretty old and it didn't help me much.
First step to Netsystem was to download pptp client.
OK next step was to transfer szap and dvbnet from dvb-apps to
/usr/local/bin
Then I used a script found at the mailing list on linuxtv, named it
netsystem.sh:

-----------------------------------------------
#/usr/bin/bash

# General
IFCONFIG=/sbin/ifconfig

# DVB Settings
DVB_PID=451
DVB_DEV=dvb0_0
DVB_IP=192.168.238.238
DVB_MAC=xx:xx:xx:xx:xx:xx   # your MAC

# SZAP Settings
SZAP=/usr/local/bin/szap
# path to your channels.conf
SZAP_CHANNEL_CONF=/root/My-Packets/DVB/linuxtv-dvb-apps-1.1.0/util/szap/cha
nnels.conf
SZAP_CHANNEL_ID=2

# DVBNET
DVBNET=/usr/local/bin/dvbnet

# Script
case $1 in
start)

        # Tune DVB Card
        $SZAP -c $SZAP_CHANNEL_CONF -n $SZAP_CHANNEL_ID -x

        # Apply PID Filter
        $DVBNET -p $DVB_PID

        # Setup DVB Network Device
        $IFCONFIG $DVB_DEV $DVB_IP
        $IFCONFIG $DVB_DEV hw ether $DVB_MAC

        # Disable RP Filter
        echo 0 > /proc/sys/net/ipv4/conf/$DVB_DEV/rp_filter
        ;;

stop)
        $IFCONFIG $DVB_DEV down
        $DVBNET -d 0
        ;;

restart)
        $0 stop;
        $0 start;
        ;;

*)
        echo "Usage: `basename $0` start | stop | restart"
        ;;
esac
-----------------------------------------------------------------


For this script i used a modified channels.conf that looks like this:
-------------
SatADSL2:12721:h:0:22000:451:620:621:1
SatADSL:12721:h:0:22000:451:620:621
SatADSL3:12721:h:0:22000:451:620:1:621
--------------


OK thats the preparation, now i start the script, when started, then i type
ifconfig and
dvb0_0 is there
-------------------------------
bash-2.05b# ./netsys.sh start
reading channels from file
'/root/My-Packets/DVB/linuxtv-dvb-apps-1.1.0/util/szap/channel
s.conf'
zapping to 2 'SatADSL':
sat 0, frequency = 12721 MHz H, symbolrate 22000000, vpid = 0x01c3, apid =
0x026c
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
status 00 | signal 3e52 | snr 933b | ber 00000000 | unc 00000000 |
status 1f | signal 3e22 | snr cf87 | ber 00000000 | unc 00000000 |
FE_HAS_LOCK

DVB Network Interface Manager
Version 1.1.0-TVF (Build Thu Apr 22 16:17:53 2004)
Copyright (C) 2003, TV Files S.p.A

Device: /dev/dvb/adapter0/net0
Status: device dvb0_0 for pid 451 created successfully.
--------------------------------------


I forgot to mention that i added a line in /etc/ppp/pap-secrets and
chap-secrets
like this
"name" * "pass"  - your acc with Netsystem

Then I connect to Netsystem with pptp:
------------------------------------------------------------
bash-2.05b# pptp vpn.netsystem.com debug user xxx

bash-2.05b# ifconfig ppp1
ppp1      Link encap:Point-to-Point Protocol
          inet addr:172.23.22.208  P-t-P:212.31.242.103 
Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:172 (172.0 b)  TX bytes:100 (100.0 b)
-------------------------------------------------------------

OK now ppp1 is up, and then i route it:
-------------------------------------------------------
bash-2.05b# route del 212.31.242.103
bash-2.05b# route add -net 212.31.242.0/24 dev ppp0
bash-2.05b# route del default
bash-2.05b# route add default dev ppp1
----------------------------------------------------------

And this is how it looks like:
-------------------------------------------------------------
bash-2.05b# ifconfig
dvb0_0    Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet addr:192.168.238.238  Bcast:192.168.238.255 
Mask:255.255.255.0
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING NOARP MULTICAST  MTU:4096  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Base address:0x1c3

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:184 errors:0 dropped:0 overruns:0 frame:0
          TX packets:184 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:14416 (14.0 Kb)  TX bytes:14416 (14.0 Kb)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:195.29.72.63  P-t-P:195.29.73.241  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:48 errors:1 dropped:0 overruns:0 frame:0
          TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:3745 (3.6 Kb)  TX bytes:2593 (2.5 Kb)

ppp1      Link encap:Point-to-Point Protocol
          inet addr:172.23.22.208  P-t-P:212.31.242.103 
Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:172 (172.0 b)  TX bytes:100 (100.0 b)

-------------------------------------------------------------------------

OK and then I try to ping some host, i red in SAT-how to that response time
should be 
from 400 to 2000.... this is what i get sometimes it's higher like 700,
1500 then falls again
but response times are awful...
------------------------------------------------
bash-2.05b# ping www.somehost.com
PING somehost.com (64.91.228.240): 56 octets data
64 octets from 64.91.228.240: icmp_seq=3 ttl=51 time=360.2 ms
64 octets from 64.91.228.240: icmp_seq=9 ttl=51 time=352.1 ms
64 octets from 64.91.228.240: icmp_seq=19 ttl=51 time=344.8 ms
64 octets from 64.91.228.240: icmp_seq=25 ttl=51 time=335.1 ms
64 octets from 64.91.228.240: icmp_seq=36 ttl=51 time=338.1 ms
64 octets from 64.91.228.240: icmp_seq=46 ttl=51 time=338.9 ms
64 octets from 64.91.228.240: icmp_seq=48 ttl=51 time=341.1 ms
--------------------------------------------------

Then I fire up my browser, but it's slow, very slow, like it opens the
first page normally but nothing more, sometimes i have to wait a while,
sometimes it doesn't even resolve the hostname etc.

So please please if someone knows how to get it faster... i writed
everything i did so if i did something wrong please tell me about it.

--
Sudjelujte u Iskon Bonus nagradnom programu i osvajajte nagrade.
Saznajte više na web adresi http://www.iskon.biz/bonus/


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index