Thread View: alt.privacy.anon-server
3 messages
3 total messages
Started by Jack
Sat, 16 May 2015 20:49
Iptables Entry Not Being Updated
Author: Jack
Date: Sat, 16 May 2015 20:49
Date: Sat, 16 May 2015 20:49
8 lines
1799 bytes
1799 bytes
I currently have 298 entries in my iptables on my debian server. I added another entry this morning using nano rules.v1 . I cursor down to the bottom of my rules file and add the new entry, save the file and then reopen the file to make sure the entry has been saved. I then do a iptables-save > /etc/iptables/rules.v1 but when I reopen the rules.v1 file the entry is not listed in my file. Is there a limit to the amount of entries that can be in your iptables file?
Re: Iptables Entry Not Being Updated
Author: Anonymous Remailer (austria)
Date: Sat, 16 May 2015 22:48
Date: Sat, 16 May 2015 22:48
19 lines
1941 bytes
1941 bytes
> I currently have 298 entries in my iptables on my debian server. I added > another entry this morning using nano rules.v1 . I cursor down to the > bottom of my rules file and add the new entry, save the file and then > reopen the file to make sure the entry has been saved. > > I then do a iptables-save > /etc/iptables/rules.v1 but when I reopen the > rules.v1 file the entry is not listed in my file. Is there a limit to > the amount of entries that can be in your iptables file? It doesn't sound like you are using the firewall right. Your /etc/iptables/rules.v1 seems to be your rules backup file. The way you make new entries in your iptables is like this: iptables -A INPUT -s ???.???.???.??? -j DROP -m comment --comment "any comment" && iptables-save > /etc/iptables/rules.v1 The reason the entry you added to your rules.v1 file disappeared is because the 'iptables-save > /etc/iptables/rules.v1' you did after making a manual into your the rules.v1 file overrode it.
Re: Iptables Entry Not Being Updated
Author: Jack
Date: Sun, 17 May 2015 00:39
Date: Sun, 17 May 2015 00:39
22 lines
2794 bytes
2794 bytes
On 5/16/2015 3:48 PM, Anonymous Remailer (austria) wrote: >> I currently have 298 entries in my iptables on my debian server. I added >> another entry this morning using nano rules.v1 . I cursor down to the >> bottom of my rules file and add the new entry, save the file and then >> reopen the file to make sure the entry has been saved. >> >> I then do a iptables-save > /etc/iptables/rules.v1 but when I reopen the >> rules.v1 file the entry is not listed in my file. Is there a limit to >> the amount of entries that can be in your iptables file? > > It doesn't sound like you are using the firewall right. > > Your /etc/iptables/rules.v1 seems to be your rules backup file. > The way you make new entries in your iptables is like this: > > iptables -A INPUT -s ???.???.???.??? -j DROP -m comment --comment "any comment" && iptables-save > /etc/iptables/rules.v1 > > The reason the entry you added to your rules.v1 file disappeared is because the 'iptables-save > /etc/iptables/rules.v1' you did after making a manual into your the rules.v1 file overrode it. > I resolved my issue by repeating the steps that I have above, but I should have done an iptables-restore < rules.v1 instead of the save command. Everything is working now.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads