General :: Iptables Not Loaded At Reboot?
Dec 26, 2010I ran iptables save but on a server reboot it just loads the default firewall config. how I can get it to load and flush my custom iptables script on reboot?
View 1 RepliesI ran iptables save but on a server reboot it just loads the default firewall config. how I can get it to load and flush my custom iptables script on reboot?
View 1 RepliesWhen i run my iptables script using fw builder (=installed on my router/server) everything works fine...until i reboot (nomather "test run" is active or not) to counter this problem i'm using the 'iptables-restore' in the "interfaces" file. upon reboot a "iptables -L" confirms me the correct rules are loaded.
However... tests (eg ping test from an ethx interface) to the outside indicate the script does not seem to be working. upon installing the script with fwbuilder this works again fine....i see no difference in the route table nor do i seen anything suspicious in the syslog. restarting the "network" does not solve anything either
I have seen posts about an you need to activate it by using "/etc/init.d/iptables save active" but theres no iptables in that location. only /sbin contains that program.
I am trying to follow the info on Getting IPTables to survive a reboot. Everything works until I reboot but the script does not run when linux starts. The article says to create a script so ifupdown loads these rules on boot:
Code:
echo "#!/bin/sh" > /etc/network/if-up.d/iptables
echo "iptables-restore < /etc/firewall.conf" >> /etc/network/if-up.d/iptables
chmod +x /etc/network/if-up.d/iptables it put what I think is a symlink in if-upd but iptables still does not survive reboot.
I'm using opensuse 11.2 with a 64bit configuration (KDE 4.3.5). I have a playstation eye webcam that work's perfectly (just plug & play) but i have an annoying problem. The microphone of the webcam is not being loaded after every reboot but, after the os has booted, plug-off and then plug-in again, makes it work normally. I've googled and I have found some solutions, telling that it should be a modules problem not being loaded in the right sequence, or during shutting down or when switching on. The fact is that i couldn't apply that solutions cause they were for different systems.
View 1 Replies View RelatedI have a strange problem with IpTables.after a server reboot, the complete rule-list of iptables is empty. After a manually start, all my old rules are there again.I checked chkconfig if autostart of iptables is enabled:chkconfig --list iptablesiptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
View 2 Replies View RelatedIm new to fedora 11 and iptables, and i need to set the following set of instruction so VirtuaBox can accept request from lan, to the mailServer in the guest os, but after restart fedora i have to input it all again.How can it become permanent entry in iptables.
View 2 Replies View RelatedI am facing a strange problem witht my iptables as there are some firewall entries stored somewhere which is displaying the below firewall entries even after flushing the iptables & when I restart the iptables service then the firewall entries are again shown in my iptables as shown below,
[root@myhome ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
[code]....
I have a CentOS 5.4 box that I am trying to set up as an OpenVPN server. So I modified the firewall by running the following script:
#!/bin/bash
#
# the following rules will flush out any existing chains
[code].....
I'm working with Linux 2.6.23 on an embedded device and am receiving the following error executing the reboot command.
View 2 Replies View RelatedI am using sda1 as /, which is a bootable drive. I do not know if my problem is that I did not create a /boot drive. After removing the iso dvd, I tried to reboot and I get this back: -bash: /sbin/reboot: input/output error Then it returns me to the terminal prompt.
View 6 Replies View RelatedI know very little about Linux. I've always used ( and been abused by) Microsoft. So: should I use Linux instead?
If Linux is that good why is is that MS is usually loaded as the OS?
i am looked htop load CPU and it showed to me that kernel loaded CPU on 100%.
View 9 Replies View RelatedHow can I see if a shared library is currently loaded? (i.e. system-wide, process agnostic)How can I see all shared libraries loaded by a process?
View 2 Replies View RelatedI recently updated the kernel from SLES 11 to SLES 11 SP1 .However my kernel modules are not getting loaded and they throw an error such as shown below:"Errornserting mii : Unknown symbol in module, or unknown parameter (see dmesg)"
View 8 Replies View Relatedmy distro is centos 5.3.today i boot the computer,i saw an error "grub stage2 is not loaded" and the system is halted. is it needed to reinstall grub? pls give me the step-by-step solution.
View 4 Replies View RelatedI'm working on a Soekris net4801 that is running an unknown distro of Linux. The kernel is 2.4.29, and iptables is v1.3.4.
I can't work out how to save the iptables. I searched the whole system for files/folders containing the name "iptables" and got 3 results:
/user/local/lib/iptables
/sbin/iptables
/lib/iptables
I've tried iptables save, iptables-save and iptables save active.
"iptables save" and "iptables save active" give me an invalid argument error. "iptables-save" isn't a valid command. "iptables --help" gives me a list of valid switches, none of which have to do with saving.
how I can save the iptables?
Lets say a BIOS interrupt is requested after the O.S is loaded. How is the BIOS code made available? Is it left it RAM even after the O.S boots?
View 3 Replies View RelatedI need to run another little GUI application xyz after Firefox gets loaded up fully. How do i find that firefox has fully loaded?If i runQuote:
#!/bin/sh
firefox
xyz
[code]...
when i poote the code you give me the grub>say error 8:kernel must be loaded beforebooting.what ihave to do now?
View 2 Replies View RelatedI am trying to install Debian lenny and ext2 filesystem with GRUB as bootloader in my USB memory stick to boot linux . However , when i try it out on my PC , a grub error : No loaded kernel is shown. I have checked that the kernel image is located in /boot.
View 14 Replies View RelatedI recently installed Ubuntu 9.04 on my Inspiron 1520 laptop. Everything works fine except when I try to enable desktop effects. When I click on it a progress bar comes up saying (searching for drivers) then the screen flickers and finally a message comes up saying DESKTOP EFFECTS COULD NOT BE LOADED.
View 3 Replies View RelatedIs there any command in linux to figure out , given a process, which processor the process is running? I am interested in figuring out the CPU busy and CPU idle time of that processor.
View 2 Replies View RelatedIn Ubuntu 9.10 I configured manually network settings to /etc/network/interfaces, and it works fine when I run /etc/init.d/networking restart.
Problem is that those settings are not loaded to GUI application (Preferences/Network connections).
I don't want to edit my preferences there, I just want to use my interfaces file as default! Do you know what's going on?
How do I know which shared libraries are loaded by an already running process?
View 2 Replies View RelatedI was messing around with my newly installed Archlinux, in a virtual machine (thankfully not my main computer) and now I cannot boot up. The issue is, I read that I could add commands in the rc.local file so that they would be automatically executed after booting up... so, I added the "pacman -Syu" command there, but it usually asks for a confirmation to continue, and that's why I think it is getting stuck there (it gets stuck just after running the daemons).
So, is there a way to stop the rc.local file to be loaded at startup?
I'm trying to launch a root terminal with a profile preloaded, but I'm not yet used to the way gnome handles its syntax, so the default link to root terminal:
Code:
Apparently, the method using gnome-terminal is to add a trailing
Code:
But this did not work, probably because in this case I'm not calling directly on gnome's terminal.
I am trying to see if a module that i loaded on Redhat succeeds.The module is from intel called vtune_drv-x32_64-2.6.18-194.el5smp.ko.When I run the script during the installation process, it shows that it is successful.Is the "0" at the end of line meaning that the module is not successfully loaded?
View 2 Replies View Relatedim doing a school assignement and i cant find any info about this anywhere. How do i make sure that a module is loaded into the kernel upon boot?
View 2 Replies View RelatedOut of curiosity, can you chainload a Linux system via a Windows executable within Windows at the ordinary desktop?Knowing windows there would be enough holes to write at any memory address without "permission", but can it be done with a humble executable? Or is Windows just too active, without the chance of nothing happening at any one pointo that everything can be exited cleanly non-existent?I'm not asking for a program or guide to do this and neither do I aim to do it. As I've stated it is all out of curiosity on whether or not some sort of protection is in place to stop this kind of thing
View 5 Replies View Relatedwhat is happening on my Centos virtual server (ps I'm having a great time re-learning Linux after a large gap and usually try and find out myself but this has me confused) First thing I did was install Tomcat and try and change the port to 80 using iptables -nat and it complained a kernel module was missing. Instead setup Apache to redirect requests so that's now working I then tried to install CSF firewall and the validation perl script returned fatal errors so I assumed OK my virtual server Kernel is restricted and used denyhosts instead which is working great
Here's the confusion.. I later retried the csftest script and it now works including all the iptables and nat stuff that fataled before. I've not rebooted or changed anything except run denyhosts and the postgres daemon + ended a few daemons that I didn't need (eg pickup,tlsmgr,courier,postfix,qmgr,saslauthd) Running lsmod returns nothing and /proc/modules is zero bytes so I'm not able to tell what is loaded? I'm tempted to try and get Tomcat redirecting via iptables and see what happens but if it works I don't like that something seems to have changed.. before I ran it direct as root now I'm SU into root from another login