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 *
  • udelame /etc/ppp/options.l2tpd for a ppp control
options.l2tpd
ipcp-accept-local
ipcp-accept-remote
refuse-eap
require-mschap-v2
noccp
noauth
idle 1800
mtu 1410
mru 1410
defaultroute
usepeerdns
debug
lock
connect-delay 5000
name "username for chap auth"
password "passworf for chap auth"

a nezapomenem na routy dle potreby

site

sit zrzky 10.133.33 sit octy 10.133.35

smarthome/carnet.1563817504.txt.gz · Poslední úprava: 2019/07/22 19:45 autor: mwk