Skip to content
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

Iptables module for debian-like systems #8889

Closed
spuzirev opened this issue Nov 28, 2013 · 5 comments · Fixed by #8890
Closed

Iptables module for debian-like systems #8889

spuzirev opened this issue Nov 28, 2013 · 5 comments · Fixed by #8890

Comments

@spuzirev
Copy link
Contributor

Iptables module is not working on Debian-like systems. How can it be fixed?

@techhat
Copy link
Contributor

techhat commented Nov 28, 2013

@spuzirev, iptables on Debian can be tricky here because Debian does not have a standard location for iptables files. The defaults that we've set up are for Arch, Gentoo and RedHat. On other systems, you need to manually specify a conf_file to use.

@spuzirev
Copy link
Contributor Author

Hmm, you can use /etc/iptables/rules.v4 file, this is standard location for package iptables-persistent.
Why not?

@techhat
Copy link
Contributor

techhat commented Nov 28, 2013

@spuzirev is that the default for Debian proper, or Ubuntu, or something else? Or am I missing something?

@spuzirev
Copy link
Contributor Author

Yes, Debian and its derivatives (e.g. Ubuntu) has no standard location for saving iptables rules in package 'iptables'. But they have package 'iptables-persistent', which provides init-script /etc/init.d/iptables-persistent with 'save' argument like RedHat iptables init-script. In this case rules are saved to /etc/iptables/rules.v4 for ipv4 and /etc/iptables/rules.v6 for ipv6.

As I know this package works equally on Ubuntu, Debian and Mint.

@techhat
Copy link
Contributor

techhat commented Nov 28, 2013

Perfect. I'll get that in there as the default for Debian. Thanks @spuzirev!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants