You are not logged in.

#1 2011-10-30 20:36:12

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

iptables in stealth [SOLVED]

when i ;

[greglee@myhost ~]$ s0 firestarter
External network device eth0 is not ready. Aborting..

so firestarter doesn't recognize my 'eth0'

[greglee@myhost ~]$ ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
        inet 213.218.3.193  netmask 255.255.240.0  broadcast 255.255.255.255
        inet6 fe80::725a:b6ff:fedb:e7b  prefixlen 64  scopeid 0x20<link>
        ether 70:5a:b6:db:0e:7b  txqueuelen 1000  (Ethernet)
        RX packets 93429  bytes 133327047 (127.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 52287  bytes 4206895 (4.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 18

[greglee@myhost ~]$ lspci | grep net
05:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5784M Gigabit Ethernet PCIe (rev 10)

it's up and running ..... What could be wrong ?

Last edited by gregor (2011-11-11 19:09:20)

Offline

#2 2011-10-30 20:45:01

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: iptables in stealth [SOLVED]

firestarter parses the output of ifconfig instead of figuring out what's up and available on its own. The latest ifconfig changed its output, so unexpected results are returned. See src/scriptwriter.c for the glorious, terrifying details.

Offline

#3 2011-10-30 21:54:34

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: iptables in stealth [SOLVED]

dude realize please ... we're not all developers ,this is to much to handle for me by my self.

i googled the 'src/scriptwriter.c' and got a shitload of info ,none of my comprehension

firewall issues are not my thing... my router broke down so i needed to install one.

Last edited by gregor (2011-10-30 21:56:54)

Offline

#4 2011-10-30 22:07:15

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: iptables in stealth [SOLVED]

gregor wrote:

dude realize please ... we're not all developers ,this is to much to handle for me by my self.

i googled the 'src/scriptwriter.c' and got a shitload of info ,none of my comprehension

firewall issues are not my thing... my router broke down so i needed to install one.

The first part of the answer was quite clear, I guess you will have to wait until there is a patch that solves the problem or use an alternative iptables frontend or use iptables directly.

As for the code, from what I can understand all the values that are used come from grepping and cutting the output of several system tools, if anything changes, which it did, all hell breaks loose.

@falconindy
"... glorious, terrifying details."
This one was epic XD and made me check the source to see all the terrifying details in all their glory tongue


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2011-10-30 22:22:35

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: iptables in stealth [SOLVED]

mmmh.....script wankers    lol

Last edited by gregor (2011-10-30 22:23:44)

Offline

#6 2011-10-30 22:31:15

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 716

Re: iptables in stealth [SOLVED]

I recommend learning IPtables by hand. Not that hard
https://wiki.archlinux.org/index.php/Iptables

Offline

#7 2011-10-30 22:41:45

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: iptables in stealth [SOLVED]

who are u kidding /? that HOWTO sucks

Offline

#8 2011-10-30 23:27:43

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: iptables in stealth [SOLVED]


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#9 2011-10-31 08:59:20

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: iptables in stealth [SOLVED]

first of all i have to solve my eth0 problem.... it,s up and running but doesn,t get detected somehow

Offline

#10 2011-10-31 09:46:58

laloch
Member
Registered: 2010-02-04
Posts: 186

Re: iptables in stealth [SOLVED]

There's no problem with your eth0. The guys already told you that the firestarter is broken. You just have to wait for someone to fix it or learn to use something sane to control the netfilter (which would be better for everyone).

Offline

#11 2011-10-31 10:29:32

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: iptables in stealth [SOLVED]

something is wrong ,when i install 'guarddog' (other firewall) and try to save the setup it rejects and starts nagging about the iptabels not loaded (which they are)

[greglee@myhost ~]$ lsmod | grep iptable
iptable_nat             4056  0
nf_nat                 15629  1 iptable_nat
iptable_mangle          1584  0
nf_conntrack_ipv4      11665  3 iptable_nat,nf_nat
nf_conntrack           59639  4 iptable_nat,nf_nat,nf_conntrack_ipv4,xt_state
iptable_filter          1488  0
ip_tables              16775  3 iptable_nat,iptable_mangle,iptable_filter
x_tables               17467  9 iptable_nat,iptable_mangle,xt_NFQUEUE,ipt_REJECT,xt_state,xt_limit,xt_tcpudp,iptable_filter,ip_tables

Offline

#12 2011-10-31 11:12:28

laloch
Member
Registered: 2010-02-04
Posts: 186

Re: iptables in stealth [SOLVED]

gregor wrote:

...when i install 'guarddog' (other firewall) and try to save the setup it rejects and starts nagging about the iptabels not loaded (which they are)

Another broken package. See comments at https://aur.archlinux.org/packages.php?ID=8998

Edit: btw, if you really need some graphical front-end, try fwbuilder. It's maintained, it works and it's in [extra].

Last edited by laloch (2011-10-31 11:29:03)

Offline

#13 2011-10-31 11:38:43

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: iptables in stealth [SOLVED]

thnx gonna try

[EDIT;] looks just fine big_smile

Last edited by gregor (2011-10-31 14:18:21)

Offline

#14 2011-11-04 15:37:18

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: iptables in stealth [SOLVED]

does anybody know the firewall-builder well ? i can,t get it into stealht mode [using iptables....] I have no experience with this what so ever. I tried over and over again..still nothing works how it should be.

this annoys me allot

Offline

#15 2011-11-11 18:33:52

gregor
Member
From: /planet/tmpfs
Registered: 2011-06-20
Posts: 175

Re: iptables in stealth [SOLVED]

# Cleanup old rules # All the time firewall is in a secure, closed state
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables --flush        # Flush all rules, but keep policies
iptables --delete-chain

## Workstation Minimal firewall ###
iptables -P FORWARD DROP
iptables -P INPUT DROP
iptables -A INPUT -i lo --source 127.0.0.1 --destination 127.0.0.1 -j ACCEPT
iptables -A INPUT -m state --state "ESTABLISHED,RELATED" -j ACCEPT
iptables -A INPUT -p icmp --icmp-type destination-unreachable -j ACCEPT
iptables -A INPUT -p icmp --icmp-type time-exceeded -j ACCEPT
iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
iptables -A INPUT -p icmp --icmp-type echo-reply -j ACCEPT

####### HOLES ####### Edit holes below, then run this script again
#iptables -A INPUT -p tcp --dport ssh -j ACCEPT
#iptables -A INPUT -p tcp --dport http -j ACCEPT
#iptables -A INPUT -p tcp --dport https -j ACCEPT
##################### Edit above

iptables -A INPUT -j LOG -m limit --limit 40/minute
iptables -A INPUT -j DROP

whow "stealth"

source= http://myy.helia.fi/~karte/iptables_firewall.html

Last edited by gregor (2011-11-13 12:24:02)

Offline

Board footer

Powered by FluxBB