Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Tech > [IPTABLES] piccolo aiuto
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
dagarlas
.arcimaestro.

User info:
Registered: Mar 2003
Posts: 450 (0.05 al dì)
Location: Vigevano
Corso:
Anno: 5
Time Online: 7 Days, 6:26:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[IPTABLES] piccolo aiuto

allora il problema e' questo... ho una lan in cui c'e' un server web accessibile dall'esterno tramite url dagarlas.homelinux.org;

Se da qualsiasi altro computer in lan cerco di accedere a questa url non funziona (dall'esterno chiaramente si) e devo invece inserire l'ip "interno" del server che e' 192.168.1.30

ora volevo impostare una qualche regola con iptables in modo che automaticamente per tutti i pacchetti diretti verso dagarlas.homelinux.org sostituisca la url con 192.168.1.30

avevo pensato a questo ma nn funziona:

iptables -t nat -A PREROUTING -i eth0 -d dagarlas.homelinux.org -j DNAT --to-destination 192.168.1.30

qualcuno ha qualche idea?

01-04-2005 20:42
Click Here to See the Profile for dagarlas Click Here to See the Blog of dagarlas Click here to Send dagarlas a Private Message Visit dagarlas's homepage! Find more posts by dagarlas Add dagarlas to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Renaulto
is fan of UTF-8

User info:
Registered: Aug 2002
Posts: 4064 (0.47 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 96 Days, 0:23:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Non ho capito perchè non è accessibile dall'interno, se riesci a navigare su altri siti.
Comunque non ti serve iptables, ti basta inserire una riga di questo tipo in /etc/hosts:

192.168.1.30 dagarlas.homelinux.org

__________________
Tanenbaum is overrated.

01-04-2005 21:04
Click Here to See the Profile for Renaulto Click Here to See the Blog of Renaulto Click here to Send Renaulto a Private Message Find more posts by Renaulto Add Renaulto to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
dagarlas
.arcimaestro.

User info:
Registered: Mar 2003
Posts: 450 (0.05 al dì)
Location: Vigevano
Corso:
Anno: 5
Time Online: 7 Days, 6:26:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

eh nn lo so nemmeno io xke nn e' accessibile dall'interno ma e' cosi. riesco a fare ping dagarlas.homelinux.org ma per il resto niente. magari non ho configurato bene il router, nn ho proprio idea. cmq cosi cm mi hai detto funziona. grazie!

01-04-2005 21:16
Click Here to See the Profile for dagarlas Click Here to See the Blog of dagarlas Click here to Send dagarlas a Private Message Visit dagarlas's homepage! Find more posts by dagarlas Add dagarlas to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.52 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: [IPTABLES] piccolo aiuto

Originally posted by dagarlas
Se da qualsiasi altro computer in lan cerco di accedere a questa url non funziona (dall'esterno chiaramente si) e devo invece inserire l'ip "interno" del server che e' 192.168.1.30
[...]
magari non ho configurato bene il router, nn ho proprio idea.


Semplicemente sulla lan manca un named.
Se non hai intenzione di installare qualche decina di macchina, la soluzione di Renaulto èla più pratica e immediata.

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

02-04-2005 00:26
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
CLod
JAILED

User info:
Registered: May 2002
Posts: 2688 (0.31 al dì)
Location: una delle 2 torri
Corso: Master ICT Sec
Anno: security
Time Online: 14 Days, 23:35:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

mi date un buon link per configurare bene iptables?

__________________
Se il pugno e' chiuso la mano e' vuota. Solo se la mano e' aperta puoi possedere tutto

02-04-2005 11:53
Click Here to See the Profile for CLod Click Here to See the Blog of CLod Click here to Send CLod a Private Message Find more posts by CLod Add CLod to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.52 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

http://iptables-tutorial.frozentux....s-tutorial.html

Lo sto leggendo nel tempo libero. E' una guida che analizza in toto iptables, facendo qualche piccolo (piccolissimo) esempio.

Utilissimo se si vuole approfondire i comandi di iptables.

Spero che ti aiuti in qualche modo

PS: da qualche parte c'è anche la versione pdf.

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

02-04-2005 14:58
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
CLod
JAILED

User info:
Registered: May 2002
Posts: 2688 (0.31 al dì)
Location: una delle 2 torri
Corso: Master ICT Sec
Anno: security
Time Online: 14 Days, 23:35:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

proprio una guida rapida e veloce :asd:

scherzo NATuralmente. thx 1000

__________________
Se il pugno e' chiuso la mano e' vuota. Solo se la mano e' aperta puoi possedere tutto

03-04-2005 11:53
Click Here to See the Profile for CLod Click Here to See the Blog of CLod Click here to Send CLod a Private Message Find more posts by CLod Add CLod to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.52 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Eh lo so, è un *po'* lunga, però è la più completa che conosco!

:)

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

03-04-2005 12:25
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 14:55.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.077 seconds (57.67% PHP - 42.33% MySQL) con 25 query.