Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ot] valknut ed iptables [risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Thu Nov 17, 2005 5:17 pm    Post subject: [ot] valknut ed iptables [risolto] Reply with quote

Scusate la domanda... ma non sono riuscito a trovare una soluzione

Io ho sul mio pc un firewall iptables ed un server dhcp che dà vari ip a diversi pc collegata alla mia rete NAT

Internet -> gentoo(firewal) 66.244.88.12=MIOIP -> Altri 2 pc , ed uno con valknut (192.168.0.24x)
Il problema è il seguente... per avviare valmnut ho bisigno che il firewall non filtri i paccehtti udp e tcp alla porta 9176 in direzione della macchina con valknut che riceve un ip dinamico che varia tra 192.168.0.241 a 244.
Per farlo metto queste regole
Code:
iptables -t nat -A PREROUTING -d $(MIOIP) -p tcp --dport 9176 -j DNAT --to  192.168.0.24x
iptables -t nat -A PREROUTING -d $(MIOIP) -p udp --dport 9176 -j DNAT --to  192.168.0.24x
iptables -A FORWARD -o eth1 -d  192.168.0.24x -p tcp --dport 9176 -j ACCEPT
iptables -A FORWARD -o eth1 -d  192.168.0.24x -p udp --dport 9176 -j ACCEPT

ma il fatto è che l'ip varia di volta in volta... Come faccio ad abilitare questa porta a questo indirizzo ?
_________________
C.


Last edited by CarloJekko on Thu Nov 17, 2005 6:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Nov 17, 2005 5:48 pm    Post subject: Reply with quote

il modo più semplice è assegnare un ip statico al client.
altrimenti la regola va modificata ad ogni cambio di indirizzo
Back to top
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Thu Nov 17, 2005 5:54 pm    Post subject: Reply with quote

il fatto è che dhcp mi è comodissimo... infatti nel mio studiolo vengono amici e si collegano allo switch con dhcp senza che devono modificare le loro impostazioni... O forse tu intendi un ip statico alla macchina con valknut?
_________________
C.
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu Nov 17, 2005 5:55 pm    Post subject: Reply with quote

sì, intendevo solo a quella
Back to top
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Thu Nov 17, 2005 6:46 pm    Post subject: Reply with quote

si infatti farò così... grazie
_________________
C.
Back to top
View user's profile Send private message
.:deadhead:.
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 2963
Location: Milano, Italy

PostPosted: Thu Nov 17, 2005 9:37 pm    Post subject: Reply with quote

un dhcp statico potrebbe si risolvere la situazione
_________________
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano 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