FC2, iptables and c-class addresses

Place to discuss Fedora and/or Red Hat

FC2, iptables and c-class addresses

Postby Basher52 » Sat Sep 25, 2004 3:46 pm

i added an IPaddress into the iptables script i got
here an example:

iptables -t filter -A INPUT -s 91.112.31/24 -p tcp --dport 138 -j SERVICE_42

but some IPaddresses like 91.112.31.94 will be DROPed
and i just cant understand why :(

ne1 got a clue?

i thought that i could make any class of address to be written in there to be able to allow several address to get thru, but i dont know hwhat im doing wrong :(
User avatar
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Postby Void Main » Sat Sep 25, 2004 3:54 pm

What exactly are you trying to do? What shows up in an "iptables -L"? I can see one thing wrong for sure, you should have 91.112.31.0/24 not 91.112.31/24.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Basher52 » Sat Sep 25, 2004 3:59 pm

yep... thats it :)
im so stupid not to see that. offcourse i should have x.x.x.x/y
thx mate :D ill try that one :D
the funny part is, that the script wont even have an error when doing this.
User avatar
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE


Return to Fedora/Red Hat

Who is online

Users browsing this forum: No registered users and 0 guests

cron