-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot copy libxt_ndpi.so to /lib/xtables/ and gives an error "cp: cannot create regular file '/lib/xtables/': Not a directory" #75
Comments
On Wed, Jul 17, 2019, 11:55 usama2490 ***@***.***> wrote:
Hi, i am working on some academic project in which i have to run this
integrated (ndpi with netfilter) firewall in a Docker Container. i was
facing so much issues while installing it on ubuntu:14.04 container and
then i switched to ubuntu:18.04 and then install its kernal headers,
comment out "nf_ct untracked" line in main.c as it gave an error while
running "sudo NDPI path=.." comand. After then i compile it successfully
and then run make install_modules command which also gave me an error of
"SSL Certs" and i ignored that error as you said earlier in one of the
answers. Now i am running "cp" commands and it cannot copy ndpi.so to
/lib/xtables/. As also i have got no success in running "iptables -m ndpi
--help". i think ndpi is not completely compiled but i have tried
everything to make it work and run every command. kindly tell what i am
missing and how to run it properly in a DOCKER CONTAINER ??
Are you able to compile in a normal vm? You might be missing some
dependencies, which are listed at github.
If you can compile at vm, then you can tackle the container issue and see
what you are missing.
… —
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#75?email_source=notifications&email_token=ADTZ27AUCTOBRLXLEPQUVI3P73NBRA5CNFSM4IEOBQJ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G7VNX7A>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADTZ27DXXAIGHMIXQ5DKGQTP73NBRANCNFSM4IEOBQJQ>
.
|
Hey thanks for the reply, i have compiled it successfully in a vm. but now i need to compile it in a DOCKER Container and i have installed all the dependencies and packages but still got no success. if it compiles successfully next step i am gonna do is to redirect the host traffic to a container and will implement that blocking rules in a container. But now, i am not able to implement any rules within a container and whenever i execute "iptables -m ndpi --help" it gives an error that seems ndpi is not completely integrates with netfilter. "sudo iptables -m ndpi --help" shows Try `iptables -h' or 'iptables --help' for more information. |
On Fri, Jul 19, 2019 at 1:08 PM usama2490 ***@***.***> wrote:
Hey thanks for the reply, i have compiled it successfully in a vm. but now
i need to compile it in a DOCKER Container and i have installed all the
dependencies and packages but still got no success. if it compiles
successfully next step i am gonna do is to redirect the host traffic to a
container and will implement that blocking rules in a container. But now, i
am not able to implement any rules within a container and whenever i
execute "iptables -m ndpi --help" it gives an error that seems ndpi is not
completely integrates with netfilter.
Understood. The containers usually are a stripped down version of the
distribution. Have you installed all dependencies in the container? You
need to do that while creating the container in the Dockerfile.
… "sudo iptables -m ndpi --help" shows
iptables v1.6.1: Couldn't load match `ndpi':No such file or directory
Try `iptables -h' or 'iptables --help' for more information.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#75?email_source=notifications&email_token=ADTZ27GIYIOBTOTS77365P3QAGHAZA5CNFSM4IEOBQJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2LGU5I#issuecomment-513174133>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADTZ27BKCYE2AQVFP7AZGYDQAGHAZANCNFSM4IEOBQJQ>
.
|
I don't go to the writing of Dockerfile part yet. i thought i should first create ubuntu container and try to compile it manually as i did in a normal VM. i assumed that if i able to do this successfully then i will write the complete Docker file. I have installed everything and fix every bug which came while compiling this module in a container but eventually ndpi is not working with net-filter properly and returns the error as mentioned above. |
I have been able to get ndpi-netfilter working inside an Ubuntu 18.04 container. I don't have a dockerfile yet - I just made manual changes inside the container, not got around to translating them. If you like, I can share the steps with you - let me know if this would be helpful to you, and I'll share it via a github gist. |
Hi mcooper-veea, |
usama bhai plz provide me your email.i have some to discuss with you |
Directory of xtables is changed in ubuntu 18.04. Use this command now. |
Hi, i am working on some academic project in which i have to run this integrated (ndpi with netfilter) firewall in a Docker Container. i was facing so much issues while installing it on ubuntu:14.04 container and then i switched to ubuntu:18.04 and then install its kernal headers, comment out "nf_ct untracked" line in main.c as it gave an error while running "sudo NDPI path=.." comand. After then i compile it successfully and then run make install_modules command which also gave me an error of "SSL Certs" and i ignored that error as you said earlier in one of the answers. Now i am running "cp" commands and it cannot copy ndpi.so to /lib/xtables/. As also i have got no success in running "iptables -m ndpi --help". i think ndpi is not completely compiled but i have tried everything to make it work and run every command. kindly tell what i am missing and how to run it properly in a DOCKER CONTAINER ??
The text was updated successfully, but these errors were encountered: