Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
0ce997d0
Commit
0ce997d0
authored
May 22, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system: fix typo in default far gw default setup
Kindly pointed out by a generous tester. Thank you.
parent
6ae6e594
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
system.inc
src/etc/inc/system.inc
+4
-4
No files found.
src/etc/inc/system.inc
View file @
0ce997d0
...
@@ -590,8 +590,8 @@ function system_routing_configure($interface = '')
...
@@ -590,8 +590,8 @@ function system_routing_configure($interface = '')
log_error
(
"ROUTING: setting IPv4 default route to
{
$gatewayip
}
"
);
log_error
(
"ROUTING: setting IPv4 default route to
{
$gatewayip
}
"
);
mwexecf
(
'/sbin/route delete -inet %s'
,
'default'
);
mwexecf
(
'/sbin/route delete -inet %s'
,
'default'
);
if
(
$fargw
)
{
if
(
$fargw
)
{
mwexecf
(
'/sbin/route delete -inet %s -interface %s'
,
array
(
$gatewayip
,
$
interfacegw
));
mwexecf
(
'/sbin/route delete -inet %s -interface %s'
,
array
(
$gatewayip
,
$
defaultif
));
mwexecf
(
'/sbin/route add -inet %s -interface %s'
,
array
(
$gatewayip
,
$
interfacegw
));
mwexecf
(
'/sbin/route add -inet %s -interface %s'
,
array
(
$gatewayip
,
$
defaultif
));
}
}
mwexecf
(
'/sbin/route add -inet %s %s'
,
array
(
'default'
,
$gatewayip
));
mwexecf
(
'/sbin/route add -inet %s %s'
,
array
(
'default'
,
$gatewayip
));
}
}
...
@@ -605,8 +605,8 @@ function system_routing_configure($interface = '')
...
@@ -605,8 +605,8 @@ function system_routing_configure($interface = '')
log_error
(
"ROUTING: setting IPv6 default route to
{
$gatewayipv6
}
"
);
log_error
(
"ROUTING: setting IPv6 default route to
{
$gatewayipv6
}
"
);
mwexecf
(
'/sbin/route delete -inet6 %s %s'
,
array
(
'default'
,
$gatewayipv6
));
mwexecf
(
'/sbin/route delete -inet6 %s %s'
,
array
(
'default'
,
$gatewayipv6
));
if
(
$fargw
)
{
if
(
$fargw
)
{
mwexecf
(
'/sbin/route delete -inet6 %s -interface %s'
,
array
(
$gatewayipv6
,
$
interfacegw
v6
));
mwexecf
(
'/sbin/route delete -inet6 %s -interface %s'
,
array
(
$gatewayipv6
,
$
defaultif
v6
));
mwexecf
(
'/sbin/route add -inet6 %s -interface %s'
,
array
(
$gatewayipv6
,
$
interfacegw
v6
));
mwexecf
(
'/sbin/route add -inet6 %s -interface %s'
,
array
(
$gatewayipv6
,
$
defaultif
v6
));
}
}
mwexecf
(
'/sbin/route add -inet6 %s %s'
,
array
(
'default'
,
$gatewayipv6
));
mwexecf
(
'/sbin/route add -inet6 %s %s'
,
array
(
'default'
,
$gatewayipv6
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment