Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem z iptables-1.4.11.1-r2 (FORWARD)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
sebad
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2005
Posts: 126
Location: Poland

PostPosted: Mon Aug 22, 2011 8:28 am    Post subject: Problem z iptables-1.4.11.1-r2 (FORWARD) Reply with quote

Ostatnio w portage pojawiła się nowa wersja pakietu iptables (stable). Bez wahania zaktualizowałem pakiet, lecz po aktualizacji przestał działać internet na kompach w sieci lokalnej. Żadnych zmian w pliku konfiguracyjnym iptables nie dokonywałem. Część konfigu wygląda w ten sposób:
Code:

*filter
:INPUT DROP [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]

-A INPUT -i lo -j ACCEPT
-A FORWARD -s 192.168.151.0/24 -j ACCEPT


Po kilkunastominutowych bojach okazało się, że problem leży w blokowaniu pakietów w filtrze forward. Po zmianie domyślnej polityki FORWARD z drop na accept wszystko zaczeło działać jak należy. Teraz pytanie: dlaczego regułka
Code:

iptables -t filter -A FORWARD -s 192.168.151.0/24 -j ACCEPT

nie działa. Czyżby jakiś błąd w nowym pakiecie iptables? Nie wydaje mi się...
_________________
8RDA3I GeForce 7600GT Gentoo 3.6.2 KDE 4.8
Serwis komputerowy - Warszawa
Back to top
View user's profile Send private message
Bastian82
n00b
n00b


Joined: 07 Feb 2011
Posts: 45
Location: Poznań

PostPosted: Tue Aug 23, 2011 6:54 am    Post subject: Reply with quote

Myślę, że bez wklejenia wszystkich regułek trudno cokolwiek będzie sprawdzić. Być może jakaś inna reguła blokuje ponownie dostęp.
Back to top
View user's profile Send private message
sebad
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2005
Posts: 126
Location: Poland

PostPosted: Tue Aug 23, 2011 8:34 am    Post subject: Reply with quote

Mój cały konfig:
Code:

*nat
#INTERNET SHARING
-A POSTROUTING -s 192.168.151.0/24 -j SNAT --to-source 217...
-A POSTROUTING -s 192.168.152.0/24 -j SNAT --to-source 217...

COMMIT

*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]

-A INPUT -i lo -j ACCEPT
-A FORWARD -s 192.168.151.0/24 -j ACCEPT
-A FORWARD -s 192.168.152.0/24 -j ACCEPT


-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp --dport 5001 -j ACCEPT
-A INPUT -p tcp --dport 3128 -j ACCEPT
-A INPUT -p tcp --dport 22 -j ACCEPT
-A INPUT -p tcp --dport 21 -j ACCEPT
-A INPUT -p icmp -j ACCEPT
#PPTPD
-A INPUT -p tcp -m tcp --dport 1723 -j ACCEPT

#Samba
-A INPUT -m state --state NEW -p tcp -m tcp --dport 137 -j ACCEPT
-A INPUT -m state --state NEW -p udp -m udp --dport 137 -j ACCEPT
-A INPUT -m state --state NEW -p tcp -m tcp --dport 138 -j ACCEPT
-A INPUT -m state --state NEW -p udp -m udp --dport 138 -j ACCEPT
-A INPUT -m state --state NEW -p tcp -m tcp --dport 139 -j ACCEPT
-A INPUT -m state --state NEW -p udp -m udp --dport 139 -j ACCEPT
-A INPUT -m state --state NEW -p tcp -m tcp --dport 445 -j ACCEPT
COMMIT

_________________
8RDA3I GeForce 7600GT Gentoo 3.6.2 KDE 4.8
Serwis komputerowy - Warszawa
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum