turboaaa / docker-nxfilter Goto Github PK
View Code? Open in Web Editor NEWMy take on nxfilter in Docker
License: GNU General Public License v3.0
My take on nxfilter in Docker
License: GNU General Public License v3.0
Need to modify the run command to check for the file instead of assuming it exists.
Step 7/9 : RUN setcap CAP_NET_BIND_SERVICE=+eip /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64/jre/bin/java
---> Running in 71dc3a973dab
Failed to set capabilities on file `/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64/jre/bin/java' (No such file or directory)
usage: setcap [-q] [-v] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ]
Note <filename> must be a regular (non-symlink) file.
The command '/bin/sh -c setcap CAP_NET_BIND_SERVICE=+eip /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.201.b09-2.el7_6.x86_64/jre/bin/java' returned a non-zero code: 1
When searching for libjli.so, yum cache not existing causes the find command to return a non-zero error.
Need to either resolve the dependency or convert to an optional setting.
--> Finished Dependency Resolution
Error: Package: nxfilter-sslsplit-0.0.4-1.el7.x86_64 (deepwoods)
Requires: sslsplit
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
The command '/bin/sh -c yum -y install nxfilter*' returned a non-zero code: 1
I have another DNS server listening on port 53 on my docker test box, so when I executed the docker run command, I changed the listening port:
docker run -dit --name nxfilter -p 9053:53 -p 9080:80 -p 9443:443 nxfilter
After the container started, I ran the following command to test:
nslookup -port=9053 bing.com localhost
This timed out.
I jumped into the console on the container, and ran the following test:
nslookup -port=53 bing.com localhost
This returned successfully:
Server: localhost
Address: 127.0.0.1#53Non-authoritative answer:
Name: bing.com
Address: 13.107.21.200
Name: bing.com
Address: 204.79.197.200
I tried to access the admin page on port 9080, but got the following:
has been blocked!
If it's blocked without a reason it might be from your browser cache.
To clear out the cache restart your browser.
What do I need to do to get this fully set up?
After the container is up and running, I tried to load up the admin page on port 80. I get the following message:
has been blocked!
If it's blocked without a reason it might be from your browser cache.
To clear out the cache restart your browser.
Restarting the browser makes no difference. I get the same result when trying to open it up from inside the container.
nxfilter does not run - it fails with
docker logs -f nxfilter
Exception in thread "main" java.lang.NullPointerException
at nxd.Main.<init>(Unknown Source)
at nxd.Main.main(Unknown Source)
Exception in thread "Thread-0" java.lang.NullPointerException
at nxd.o.run(Unknown Source)
Exception in thread "main" java.lang.NullPointerException
at nxd.Main.<init>(Unknown Source)
at nxd.Main.main(Unknown Source)
Exception in thread "Thread-0" java.lang.NullPointerException
at nxd.o.run(Unknown Source)
Exception in thread "main" java.lang.NullPointerException
at nxd.Main.<init>(Unknown Source)
at nxd.Main.main(Unknown Source)
Exception in thread "Thread-0" java.lang.NullPointerException
at nxd.o.run(Unknown Source)
Exception in thread "main" java.lang.NullPointerException
at nxd.Main.<init>(Unknown Source)
at nxd.Main.main(Unknown Source)
Exception in thread "Thread-0" java.lang.NullPointerException
at nxd.o.run(Unknown Source)
i ran it like so docker run -dit --name nxfilter -v /opt/nxfilter/conf:/nxfilter/conf -v /opt/nxfilter/log:/nxfilter/log -v /opt/nxfilter/db:/nxfilter/db -p 7180:80 -p 7443:443 -p 53:53/udp -p 19002-19004:19002-19004 --restart always nxfilter:latest
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.