Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
shorewall - interner mailserver - intern - mit externer ip
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
stiwi
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 266
Location: hamburg - germany

PostPosted: Mon Mar 29, 2004 8:10 am    Post subject: shorewall - interner mailserver - intern - mit externer ip Reply with quote

ich habe hier einn proxyserver mit zwei netzwerkkarten. eine local und eine zur firewall. wenn ich hier im netz bin, möchte ich den mailserver mit unserer externen ip ansprechen, um die einstellungen in outlook nicht immer ändern zu müssen. also will ich, das die daten am proxy mit der externen ip des mailservers herausgefiltert werden und intern zugestellt. meine regel:

#DNAT loc:10.30.3.21 loc:10.30.2.1 tcp pop-3 - 195.111.206.82
#DNAT loc:10.30.3.21 loc:10.30.2.1 udp pop-3 - 195.111.206.82

aber irgendwie klappt das nicht.
internes netz: 10.30.0.0/16, netz zwischen firewall und proxy: 10.31.0.0/16. ich: 10.30.3.21, Mailserver intern: 10.30.2.1, Mailserver extern: 195.111.206.82

jemand ne idee ?
Back to top
View user's profile Send private message
ruth
Retired Dev
Retired Dev


Joined: 07 Sep 2003
Posts: 640
Location: M / AN / BY / GER

PostPosted: Mon Mar 29, 2004 7:15 pm    Post subject: Reply with quote

hi,
an deiner stelle würde ichs über eine namensauflösung versuchen...
gib dem server einen schönen namen (mailgate.xxx.org) (geht auch gut über dyndns usw.)
lasse den internen nameserver den namen intern auf die private ip auflösen.
jeder äussere nameserver löst den namen dann entsprechend auf die externe ip auf
von aussen dann über DNAT - aber das hast du ja schon... ;-)
et voila... ;-)
_________________
"The compiler has tried twice to abort and cannot do so; therefore, compilation will now terminate."
-- IBM PL/I (F) error manual
Back to top
View user's profile Send private message
stiwi
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 266
Location: hamburg - germany

PostPosted: Mon Mar 29, 2004 7:48 pm    Post subject: Reply with quote

danke, ich habs aber sogar so zum laufen bekommen. ein eintrag in der /etc/shorewall/interfaces hinter das lokale interface bei optionen "routeback". an sonsten wir die table loc2loc gar nicht angesprochen. nun gehts :-)

trotzdem danke
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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