From: "Danila Octavian" <octavian@service.agress.ro>
To: netfilter@lists.netfilter.org
Subject: Hostname with DNAT ? {OK}
Date: Mon, 26 Jul 2004 17:40:12 +0300 [thread overview]
Message-ID: <001701c4731e$8408f850$da0da8c0@pisic> (raw)
[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]
hello,
I was wondering if you can guide me how to deal with my situation :
I want to do something like :
$IPTABLES -A PREROUTING -t nat -i eth0 -p tcp -d mail.server1.com --dport 25 -j DNAT --to 192.168.14.254:25
$IPTABLES -A FORWARD -i eth0 -p tcp -d mail1.server.com --dport 25 -j ACCEPT
$IPTABLES -A PREROUTING -t nat -i eth0 -p tcp -d mail.server2.com --dport 25 -j DNAT --to 192.168.14.251:25
$IPTABLES -A FORWARD -i eth0 -p tcp -d mail.server2.com --dport 25 -j ACCEPT
$IPTABLES -A PREROUTING -t nat -i eth0 -p tcp -d server3.com --dport 25 -j DNAT --to 192.168.14.253:25
$IPTABLES -A FORWARD -i eth0 -p tcp -d server3.com --dport 25 -j ACCEPT
$IPTABLES -A PREROUTING -t nat -i eth0 -p tcp -d mail.server3.com --dport 25 -j DNAT --to 192.168.14.253:25
$IPTABLES -A FORWARD -i eth0 -p tcp -d mail.server3.com --dport 25 -j ACCEPT
Is posibble to use names instead of IP like in my situation ?
Thanks in advance
--
This message has been scanned for viruses and
dangerous content, and is believed to be clean.
Service.Agress.Ro E-Mail Scanning Service
[-- Attachment #2: Type: text/html, Size: 2090 bytes --]
next reply other threads:[~2004-07-26 14:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-26 14:40 Danila Octavian [this message]
2004-07-27 14:16 ` Hostname with DNAT ? {OK} Bruno Negrao
2004-07-28 6:18 ` Danila Octavian
-- strict thread matches above, loose matches on Subject: below --
2004-07-26 15:30 Jason Opperisano
2004-07-27 7:54 ` Danila Octavian
2004-07-27 8:44 ` Antony Stone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001701c4731e$8408f850$da0da8c0@pisic' \
--to=octavian@service.agress.ro \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox