Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ncschool
/
ncfilters
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e00bda3e
authored
May 19, 2017
by
netz.coop eG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spelling Fix siptables
1 parent
a136be4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
include/classes/Sytemoutput.php
include/classes/Sytemoutput.php
View file @
e00bda3
...
...
@@ -55,7 +55,7 @@ class Sytemoutput {
}
else
{
file_put_contents
(
FWFILENAME
,
'iptables -t nat -A PREROUTING --src '
.
$value
[
'ip'
]
.
'-i eth1 -p udp --dport 53 -j REDIRECT --to-port 5335 '
.
PHP_EOL
,
FILE_APPEND
);
}
file_put_contents
(
FWFILENAME
,
'
s
iptables -t nat -A PREROUTING --src '
.
$value
[
'ip'
]
.
'-i eth1 -p tcp --dport 53 -j REDIRECT --to-port 5335 '
.
PHP_EOL
,
FILE_APPEND
);
file_put_contents
(
FWFILENAME
,
'iptables -t nat -A PREROUTING --src '
.
$value
[
'ip'
]
.
'-i eth1 -p tcp --dport 53 -j REDIRECT --to-port 5335 '
.
PHP_EOL
,
FILE_APPEND
);
}
$i
++
;
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment