24 Kwietnia 2024 20:48:12
Nawigacja
· Strona Główna
· Forum

· Tomato by Shibby
· FreshTomato


Wątki na forum
Najnowsze dyskusje
· Asus TUF-AX3000_V2 p...
· nju swiatło pytania
· Jaki router kupić? ...
· konfiguracja router ...
· Szukam zaproszenia n...
· [Howto] Xpenology na...
· dodatkowe złącza s...
· RT-N18U - nie można...
· [MOD] Tomato64 (x86-64)
· Firewall nie zawsze ...
· [MOD] FreshTomato-AR...
· Optware na CIFS
· RT-AX56U - Status kl...
· [MOD] FreshTomato-MI...
· Multiroom N z wykorz...
· [S] Asus RT-AC68U E1
· [S] ASUS RT-AC68U
· Rozłączanie klient...
· serwer VPN za wan'em
· Przejscie z dyndns f...
Najpopularniejsze obecnie wątki
· Jaki router kupi... [552]
· Asus TUF-AX3000_V... [19]
· Szukam zaproszeni... [16]
· konfiguracja rout... [8]
· nju swiatło pytania [0]
Ankieta
Jaki procesor posiada twój router?

Broadcom MIPSEL
Broadcom MIPSEL
36% [151 głosów]

Broadcom ARM
Broadcom ARM
52% [216 głosów]

Atheros
Atheros
5% [22 głosów]

Marvell
Marvell
1% [4 głosów]

Ralink
Ralink
1% [3 głosów]

Intel/AMD/VIA
Intel/AMD/VIA
1% [5 głosów]

Żaden z powyższych
Żaden z powyższych
4% [15 głosów]

Ogółem głosów: 416
Musisz zalogować się, aby móc zagłosować.
Rozpoczęto: 02/02/2015 09:38
Twoje IP
3.140.186.241
Zobacz wątek
OpenLinksys » :: PORTAL :: » Tutoriale
 Drukuj wątek
IPsec na Tomato - Site-to-Site IKE PSK do Drayteka
kille72
Tomato ARM7 to SDK 7.x na AC3200 oraz R8000.
 
p4v3u
Próbuje to ustawić, i bardzo mi na tym zalezy.
Po wykonaniu wszystkiego zgodnie z manulaem mam błędy:



root@tomh:/opt/modules/ipsec# /opt/etc/init.d/S90strongswan  start
[b]no files found matching '/opt/etc/strongswan.d/*.conf'[/b]
Starting strongSwan 5.5.1 IPsec [starter]...
/opt/etc/ipsec.conf:5: syntax error, unexpected STRING [auto]
invalid config file '/opt/etc/ipsec.conf'
unable to start strongSwan -- fatal errors in config
root@tomh:/opt/modules/ipsec#


Ten fragment wydaje się byc intereusjacy


no files found matching '/opt/etc/strongswan.d/*.conf'



Zainstalowalem pakiety

root@tomh:/opt/modules/ipsec# opkg install strongswan
Package strongswan (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-charon
Package strongswan-charon (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-addrblock
Package strongswan-mod-addrblock (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-af-alg
Package strongswan-mod-af-alg (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-agent
Package strongswan-mod-agent (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-attr
Package strongswan-mod-attr (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-attr-sql
Package strongswan-mod-attr-sql (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-blowfish
Package strongswan-mod-blowfish (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-ccm
Package strongswan-mod-ccm (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-cmac
Package strongswan-mod-cmac (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-constraints
Package strongswan-mod-constraints (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-coupling
Package strongswan-mod-coupling (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-ctr
Package strongswan-mod-ctr (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-curl
Package strongswan-mod-curl (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-des
Package strongswan-mod-des (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-dhcp
Package strongswan-mod-dhcp (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-dnskey
Package strongswan-mod-dnskey (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-duplicheck
Package strongswan-mod-duplicheck (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-eap-identity
Package strongswan-mod-eap-identity (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-eap-md5
Package strongswan-mod-eap-md5 (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-eap-mschapv2
Package strongswan-mod-eap-mschapv2 (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-farp
Package strongswan-mod-farp (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-fips-prf
Package strongswan-mod-fips-prf (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-gcm
Package strongswan-mod-gcm (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-gcrypt
Package strongswan-mod-gcrypt (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-ha
Package strongswan-mod-ha (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-kernel-libipsec
Package strongswan-mod-kernel-libipsec (5.5.1-2) installed in root is up to date                                                                             .
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-kernel-netlink
Package strongswan-mod-kernel-netlink (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-ldap
Package strongswan-mod-ldap (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-led
Package strongswan-mod-led (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-md4
Package strongswan-mod-md4 (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-md5
Package strongswan-mod-md5 (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-nonce
Package strongswan-mod-nonce (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-openssl
Package strongswan-mod-openssl (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-pem
Package strongswan-mod-pem (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-pgp
Package strongswan-mod-pgp (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-pkcs1
Package strongswan-mod-pkcs1 (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-pkcs11
Package strongswan-mod-pkcs11 (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-pkcs8
Package strongswan-mod-pkcs8 (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-resolve
Package strongswan-mod-resolve (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-revocation
Package strongswan-mod-revocation (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-sha1
Package strongswan-mod-sha1 (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-sha2
Package strongswan-mod-sha2 (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-smp
Package strongswan-mod-smp (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-socket-dynamic
Package strongswan-mod-socket-dynamic (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-stroke
Package strongswan-mod-stroke (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-test-vectors
Package strongswan-mod-test-vectors (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-unity
Package strongswan-mod-unity (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-whitelist
Package strongswan-mod-whitelist (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-xauth-eap
Package strongswan-mod-xauth-eap (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-mod-xauth-generic
Package strongswan-mod-xauth-generic (5.5.1-2) installed in root is up to date.
root@tomh:/opt/modules/ipsec# opkg install strongswan-utils
Package strongswan-utils (5.5.1-2) installed in root is up to date.


Połączony z 04 maj 2017 12:11:19:
addModules script też mam i ponowne uruchomienie nic nie pomogło


root@tomh:/opt/modules/ipsec# sh /opt/modules/ipsec/addModules
insmod: can't insert '/lib/modules/2.6.36.4brcmarm/kernel/net/netfilter/xt_policy.ko': File exists
insmod: can't insert 'ah4.ko': File exists
insmod: can't insert 'af_key.ko': File exists
insmod: can't insert 'esp4.ko': File exists
insmod: can't insert 'des_generic.ko': File exists
insmod: can't insert 'sha256_generic.ko': File exists
insmod: can't insert 'sha512_generic.ko': File exists
insmod: can't insert 'xfrm_user.ko': File exists
insmod: can't insert 'xfrm4_mode_beet.ko': File exists
insmod: can't insert 'xfrm4_mode_transport.ko': File exists
insmod: can't insert 'xfrm4_mode_tunnel.ko': File exists
insmod: can't insert 'xfrm_ipcomp.ko': File exists
insmod: can't insert 'ipcomp.ko': File exists
insmod: can't insert 'xfrm4_tunnel.ko': File exists
................
Done.


Połączony z 04 maj 2017 12:18:21:
dla pewności w plikach

-rwxr--r-- 1 root root 400 May 4 11:57 /opt/etc/ipsec.conf
-rwxr--r-- 1 root root 38 May 4 11:58 /opt/etc/ipsec.secret
-rw------- 1 root root 196 Apr 19 14:03 /opt/etc/ipsec.user


skonwertowałem końce linii na unix.

Połączony z 04 maj 2017 12:24:49:
Nie ustawiałem tylko reguł iptables/firewalla, ale to dla w.w. błedu chyba nie ma znaczenia, znalazłem jeszcze w paragrafie 'Optymalizacja'

#include stronsgwan.d/*.conf więc zakomentowałem tą linie,dzieki czemu zniknęło z outputa stronsgwana info o niewłaściwej scieżce:


root@tomh:/opt/modules/ipsec# sh  /opt/etc/init.d/S90strongswan start
Starting strongSwan 5.5.1 IPsec [starter]...
/opt/etc/ipsec.conf:5: syntax error, unexpected STRING [auto]
invalid config file '/opt/etc/ipsec.conf'
unable to start strongSwan -- fatal errors in config

Edytowany przez p4v3u dnia 04-05-2017 12:24
 
shibby
masz błąd w pliku ipsec.conf

opt/etc/ipsec.conf:5: syntax error, unexpected STRING [auto]

ma być auto=start
Pytanie jak ty masz. Pewnie wdarł ci się jakiś niewłaściwy znak np. spacja, tabulacja etc.
Proxmox VE: i7-7700T, 64GB RAM, 3x2TB SSD, 1x1TB SSD, 512GB NVMe, Intel X710-DA2 SFP+
VM Router: OpenWRT 22.03.4
VM NAS: Synology DS920+
VM VPS: Debian, WWW, Home Assistant
Switch: Netgear MS510TXPP
Switch: Ubiquiti USW-Flex-mini - szt. 2
Wi-Fi: Ubiquiti U6-Lite - szt. 2
 
p4v3u
właśnie go już tnę i tnę, i pomysłu za bardzo nie mam:
Wyciąłem komentarze z początku, whitespace'y, linie kończą się bez spacji.


config setup
conn net2net
auto=start
authby=secret
type=tunnel
ikelifetime=480m
keylife=60m
forceencaps=yes
keyexchange=ikev1
ike=3des-sha1-modp1024
esp=3des-sha1-modp1024
left=
leftsubnet=192.168.1.1/24
right=
rightsubnet=192.168.0.1/24
dpddelay=10
dpdtimeout=30
dpdaction=restart


Połączony z 04 maj 2017 12:57:51:
left oi right mam uzupelnione

Połączony z 04 maj 2017 12:59:24:
po zmianie na auto=ignore również zgłasz błąd w 3. linii.

Czy nie powinno być wcięć w pliku ?

Połączony z 04 maj 2017 17:08:50:
Po raz kolejny przekleiłem zawartość bez powodzenia. Czy na pewno mój conf jest dobry? komentarze i wolne linie chyba nie są potrezebne ?
Edytowany przez p4v3u dnia 04-05-2017 17:08
 
Adooni
tutaj znalazlem ciekawy artykół dotyczacy też tego tematu

https://www.vioreliftode.com/index.ph...up-part-2/
Orange 300/50 Mb/s + ONT Terminal
HPE MS gen8 Proxmox 7.0-11 VMs: Router OPNsense 23.X-amd64 and OMV
HPE MicroServer gen8: Xeon E3-1265Lv2, 16GB (2x KTH-PL316E/8G), HP 331T, 4x4TB WD RED
Asus RT-AC68U AccessPoint
 
Przejdź do forum
Zaloguj
Wprowadź adres e-mail lub nazwę użytkownika

Hasło



Nie masz jeszcze konta? Zarejestruj się.

Zapomniałeś/aś hasła?
Aktualnie online
· Gości online: 39

· Użytkowników online: 0

· Łącznie użytkowników: 24,117
· Najnowszy użytkownik: Ja
Czat
Musisz się zalogować, aby opublikować wiadomość.

tamtosiamto
23-04-2024 12:35
modem bez smilocka?

man1
22-04-2024 23:27
Czy próbował ktoś uzywac karty voice (z nolimit GB) od tmobile w modemie /routerze? Da się jakoś to zrobić? Bo u mnie neta brak. E3372 Sad

tamtosiamto
31-03-2024 12:54
Wesolego jajka wszytskim forumowiczom Grin

tamtosiamto
28-03-2024 23:24
tak, tak zgadza sie, ale ja pytam o wykluczenie noda na guest network w first set, i to nie dziala

Adooni
24-03-2024 13:16
Guest network is currently designed to allow the first set of each band (2.4G, 5G, 5G-1) available to the AiMesh node

tamtosiamto
24-03-2024 03:03
ale w 1 jest opcja do wyboru - dla calej sieci albo rutera only i wlasnie o tym mowie, ze nie dziala

Adooni
23-03-2024 16:31
w dokumencie asusa jest ze wlasnie dla 1 ma dzialac na nodach tez

tamtosiamto
23-03-2024 15:39
tak, ale nie zmienia to faktu, ze w pierwszej nie dziala wylaczanie aimesh dla goscinnej( a powinno), czyli jest jakis bug. Mam start soft, bo to dsl-ac68 ktory nie jest juz updateowany

Adooni
22-03-2024 18:07
nie, 1 wsza bedzie wszedzie trzeba 2ga zrobic dla kazdego pasma te nie sa przenoszone

tamtosiamto
19-03-2024 19:57
czyli jak mam jedna siec goscinna to powinno dzialac separowanie gosci od noda -a nie dziala Smile

71,298,008 unikalnych wizyt