Can't find IPTABLES start/stop/restart service, rules file ...
New to Backtrack, but not to *nix....
Situation:
This is a brand new Backtrack 5 R1 install. I don't really want to use 'ufw' firewall manager for my iptables. Iptables is clearly installed, but can't find a way to start/stop/restart specifically the IPTABLES service.
/etc/init.d/iptables (non-existent), can't service iptables restart either....none of that stuff works....:)
Also where would the IPTABLES rules file reside in this distribution?
Couldn't find anything on blogs about it either..., got so desperate that I'm posting on this blog (first time in my life :) I have to be missing something here...
Re: Can't find IPTABLES start/stop/restart service, rules file ...
Why not create your own init.d script ? or your own rules ?
Backtrack is not meant to have a firewall on it so if you really insist on it you will have to do it manually.
Re: Can't find IPTABLES start/stop/restart service, rules file ...
Hey,
If backtrack is not meant to have a firewall on it, why is ufw service (utilizing iptables) is running by default? Just curious.....
That doesn't really answer my question though. I was trying to setup SSLSTRIP attack in my environment. I'd rather not use a firewall at all, but I need to use iptables NAT table to forward traffic from port 80 to some other port, let's say 8080. IPTABLES needs to be running in order for me to forward traffic. Let me know if that assumption is incorrect.
So that brings me to my next question, let's say that I don't want to utilize ufw service to manage my ruleset, so I turn that off, and I just want to use IPTABLES.
Can someone show me how to properly setup IPTABLES service and rules file on Backtrack from scratch? I see a lot of posts in reference to this all over the NET but no one
seems to be able to provide a detailed concrete working answer, such as a set of instructions from A to Z.
Re: Can't find IPTABLES start/stop/restart service, rules file ...
UFW running by default ?
Code:
root@bt:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
root@bt:~# ufw status
Status: inactive
To answer your iptables question: http://lmgtfy.com/?q=iptables+manual
Re: Can't find IPTABLES start/stop/restart service, rules file ...
You are still not answering my question...so let's break it down and make it easy.
In redhat/fedora distro's you have something like this:
'service iptables start' and the service is listed under services.
How do I check if iptables is running in backtrack.....? What command would I issue, where is the init.d script, if there is one?
How do I start/stop the iptables service in backtrack....?
Re: Can't find IPTABLES start/stop/restart service, rules file ...
Well you are probably right, let's break it down and make it easy.
1. First of you come here asking for iptables, I told you that Backtrack isn't supposed to have a firewall configured.
2. You than state that "ufw" is enabled by default, I clearly posted the console output showing you that iptables is running by default and ufw is inactive by default.
3. If you would have even wasted 5 minutes on google searching how to use IPtables you would have found the answer.
Oh and the Wiki clearly states:
Quote:
BackTrack is a highly specialized distro, where a lot of normal tasks are not done automatically for you as they are in a mainstream distro.