Hi guys. I'm new to perl. I've worked with iptables in shell, but now I need to write an iptables command with perl. here is my code that I've tried but it didn't work :
Code:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
$iptables = "/usr/sbin/iptables";
Hello,
I have kimsufi from OVH, using ubuntu 10.04
Before have installed -
Chkrootkit
Rkhunter
denyhosts
service nginx
fail2ban
and iptables.
Now my problem is i can't login via ssh. I made resque mode,so i can connect, but can't delete some of iptables config files, becouse i am not root.
Maybe i don't know how to do "mount", i need help with it.
I can't do apt-get.
Hello! I set up my iptables in fedora 18, saved them to "/etc/iptables.save" and wanted to add the "iptables-restore" command in /etc/rc.local... Well the file doesn't exist anymore under that path - where can I now put this restore-command so that my iptables are being loaded with every boot - preferable before network starts.
greets hobert
if I enter a command as root to start the dnsmasq server
(a lightweight combination dhcp and bootp server bundled with F11 and F12 and probably others)
- even in the format as below
Code:
su [options] [commands] [-] [username]
the list of active processes still shows the user as "nobody".
I know for a fact that iptables running is causing my instance of Apache Solr to be inaccessible.
How do I know this? Because I ran:
/sbin/service iptables save && /sbin/service iptables stop
Once I did this, everything worked flawlessly.
I would like to continue using my firewall however, adding the necessary rules for it doesn't seem to be working.
I want to create the logging of iptables DROP's and intrusion attemps.
First, I put --log-prefix "iptables: " at the end of every iptables rules in my iptables rules file. But this doesn't work, as it says there is a syntax error. So where should I put that command?
I am having a go at setting up my own Apache and can't seem to get my head around the permissions.
Lets say I grab a file from somewhere off the web and it has permission of 600.
I then upload this file via ftp to a user directory, which is also an apache virtual site, and so this file retains this permission of 600.
My Host Lists of Ettercap is empty when I try to sniff my Lan.
i followed this article
Code:
Adding yourself to the Apache group and modifying permissions For this example your username will be "youruser", on most Linux distributions the Apache service runs on the user "wwww-data" and the group "www-data", we need to include our user "youruser" in to the "www-data" group to be able to se