Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
31168290
Commit
31168290
authored
8 years ago
by
Hans Dedecker
Committed by
Jo-Philipp Wich
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ipip: Support fqdn as remote tunnel endpoint
Signed-off-by:
Hans Dedecker
<
dedeckeh@gmail.com
>
parent
9097dc5a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package/network/config/ipip/Makefile
+2
-2
2 additions, 2 deletions
package/network/config/ipip/Makefile
package/network/config/ipip/files/ipip.sh
+14
-1
14 additions, 1 deletion
package/network/config/ipip/files/ipip.sh
with
16 additions
and
3 deletions
package/network/config/ipip/Makefile
+
2
−
2
View file @
31168290
...
...
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME
:=
ipip
PKG_VERSION
:=
1
PKG_RELEASE
:=
1
PKG_RELEASE
:=
2
PKG_LICENSE
:=
GPL-2.0
include
$(INCLUDE_DIR)/package.mk
...
...
@@ -19,7 +19,7 @@ define Package/ipip
CATEGORY
:=
Network
MAINTAINER
:=
Hans Dedecker <dedeckeh@gmail.com>
TITLE
:=
IP
in
IP Tunnel config support
DEPENDS
:=
+kmod-ipip
DEPENDS
:=
+kmod-ipip
+resolveip
endef
define
Package/ipip/description
...
...
This diff is collapsed.
Click to expand it.
package/network/config/ipip/files/ipip.sh
+
14
−
1
View file @
31168290
...
...
@@ -9,16 +9,29 @@
proto_ipip_setup
()
{
local
cfg
=
"
$1
"
local
remoteip
local df
ipaddr peeraddr tunlink ttl tos zone mtu
json_get_vars
df
ipaddr peeraddr tunlink ttl tos zone mtu
[
-z
"
$peeraddr
"
]
&&
{
proto_notify_error
"
$cfg
"
"MISSING_ADDRESS"
proto_notify_error
"
$cfg
"
"MISSING_
PEER_
ADDRESS"
proto_block_restart
"
$cfg
"
return
}
remoteip
=
$(
resolveip
-t
10
-4
"
$peeraddr
"
)
if
[
-z
"
$remoteip
"
]
;
then
proto_notify_error
"
$cfg
"
"PEER_RESOLVE_FAIL"
return
fi
for
ip
in
$remoteip
;
do
peeraddr
=
$ip
break
done
(
proto_add_host_dependency
"
$cfg
"
"
$peeraddr
"
"
$tunlink
"
)
[
-z
"
$ipaddr
"
]
&&
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment