Uživatelské nástroje

Nástroje pro tento web


smarthome:carnet

Toto je starší verze dokumentu!


Carnet

instalace debianu headless

  1. napriklad na webu FAI vygenerujeme instalacni img
  2. vypalime na instalacni medium
  3. vlozime img do ciloveho stroje, kde je cilove medium
  4. cekame minimalne 20min
  5. rebootneme do nainstalovaneho systemu

modem a ppp pres operatora

apt install wvdial
nano /etc/wvdial.conf
wvdial.conf
[Dialer Defaults]
Modem = /dev/ttyUSB2
Modem Type = Analog Modem
ISDN*= 0
Baud = 460800
Dial Attempts = 1
Username = o2
Password = o2
Init1 = ATZ
Init2 = AT&F &D2 &C1
Init3 = ATS7=60 S30=0 S0=0
Init4 = AT+CGDCONT=1,"IP","internet"
Phone = *99#
Stupid Mode = 1

vyzkousime wvdial

pak do /etc/network/interfaces jako prvni

auto ppp0
iface ppp0 inet wvdial

a reboot, default routa by mela jit pres ppp0

tunel

potrebujeme xl2tp: upravit /etc/xl2tpd/xl2tpd.conf

xl2tpd.conf
[global]
access control = no
auth file = /etc/ppp/chap-secrets
debug avp = no
debug network = no
debug packet = no
debug state = no
debug tunnel = no[lac “lns name you specified on the server”]
lns = “lns ip address (likely to be global address)”
redial = yes
redial timeout = 5
require chap = yes
require authentication = yes
ppp debug = no
pppoptfile = /etc/ppp/options.l2tpd
require pap = no
autodial = yes
name = “username for chap authentication”
  • upravime /etc/ppp/chap-secrets a dame tam usera a heslo pro tunel.
  • a nezapomeneme chmod 600 /etc/ppp/chap-secrets
username * password *
smarthome/carnet.1552654855.txt.gz · Poslední úprava: 2019/03/15 14:00 autor: mwk