I have not had too much experience with IPtables and was asked to create this policy in iptables. Any help?
https://imgur.com/a/rgx16At
Larger image size:Cannot figure out how to write the iptables command for the specified policy. Any help would be great!
-
- Posts: 2
- Joined: 2023/05/05 17:58:45
Cannot figure out how to write the iptables command for the specified policy. Any help would be great!
Last edited by IPTablesAreHard on 2023/05/05 19:46:48, edited 1 time in total.
Re: Cannot figure out how to write the iptables command for the specified policy. Any help would be great!
Talking of "hard", that image is hard to read. It's too small and is completely unreadable so we'll all have no idea what you need to do.
CentOS 8 died a premature death at the end of 2021 - migrate to Rocky/Alma/OEL/Springdale ASAP.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are dead, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are dead, do not use them.
Use the FAQ Luke
-
- Posts: 2
- Joined: 2023/05/05 17:58:45
Re: Cannot figure out how to write the iptables command for the specified policy. Any help would be great!
https://imgur.com/a/rgx16At
Sorry about the first attached quality. I have uploaded it to imgur to avoid file size limits!
Sorry about the first attached quality. I have uploaded it to imgur to avoid file size limits!
Re: Cannot figure out how to write the iptables command for the specified policy. Any help would be great!
If this is some kind of exercise or test, I think you first should try yourself and then ask specific questions.
And I believe CentOS 7 comes with firewalld as default.
And I believe CentOS 7 comes with firewalld as default.
Re: Cannot figure out how to write the iptables command for the specified policy. Any help would be great!
There is forwarding in the question and FirewallD (in el7) is not made for it.
Linux kernel has had nf_tables since version 3.13 and even el7 has it (backported).
It would make much more sense to now learn nft rulesets rather than iptables.
Linux kernel has had nf_tables since version 3.13 and even el7 has it (backported).
It would make much more sense to now learn nft rulesets rather than iptables.