iptables and dns

Обсуждение настройки и работы сервисов, резервирования, сетевых настроек и вопросов безопасности ОС.

Модераторы: SLEDopit, Модераторы разделов

dedexes
Сообщения: 9
ОС: Debian

iptables and dns

Сообщение dedexes »

Please open attach file.
In B server instaled ftp server.
In A server installed Linux box and installed dns and iptables.
I have configured dns server, local domain named intranet

Код: Выделить всё

$TTL    604800
@       IN      SOA     intranet. root.intranet. (
                            41         ; Serial
                         604800        ; Refresh
                          86400        ; Retry
                        2419200        ; Expire
                         604800 )      ; Negative Cache TTL
;
@               IN      NS      intranet.
@               IN      A       10.10.0.10
site             IN      A       10.10.0.10


iptables
iptables -t nat -A PREROUTING -p tcp -i eth1 -d 10.10.0.10 --dport 21 -j DNAT --to-destination 192.168.0.2
clients Primary DNS server 10.10.0.10

Question?
When clients type ftp site.intranet they are not redirecting to 192.168.0.2.
What's problem here?
Please help me.
У вас нет необходимых прав для просмотра вложений в этом сообщении.
Спасибо сказали:
snoz
Сообщения: 40
ОС: slackware

Re: iptables and dns

Сообщение snoz »

dedexes писал(а):
15.02.2008 16:04
Please open attach file.
In B server instaled ftp server.
In A server installed Linux box and installed dns and iptables.
I have configured dns server, local domain named intranet

Код: Выделить всё

$TTL    604800
@       IN      SOA     intranet. root.intranet. (
                            41        ; Serial
                         604800    ; Refresh
                          86400    ; Retry
                        2419200    ; Expire
                         604800 )     ; Negative Cache TTL
;
@               IN      NS      intranet.
@               IN      A       10.10.0.10
site             IN      A       10.10.0.10


iptables
iptables -t nat -A PREROUTING -p tcp -i eth1 -d 10.10.0.10 --dport 21 -j DNAT --to-destination 192.168.0.2
clients Primary DNS server 10.10.0.10

Question?
When clients type ftp site.intranet they are not redirecting to 192.168.0.2.
What's problem here?
Please help me.

iptables -t nat -A PREROUTING -d 10.10.0.10 -p tcp -m tcp --dport 21 -j DNAT --to-destination 192.168.0.2:21
slackware user
mail: snozstas@gmail.com
icq: 299434468
icq2: 469265570
icq3: 407493069
Спасибо сказали:
Tokra
Сообщения: 399

Re: iptables and dns

Сообщение Tokra »

snoz писал(а):
15.02.2008 16:16
iptables -t nat -A PREROUTING -d 10.10.0.10 -p tcp -m tcp --dport 21 -j DNAT --to-destination 192.168.0.2:21

and
iptables -t nat -A POSTROUTING -s 10.10.0.0/24 -o eth0 -j SNAT --to-source 192.168.0.1
default Gateway on сlient 10.10.0.10
Спасибо сказали:
dedexes
Сообщения: 9
ОС: Debian

Re: iptables and dns

Сообщение dedexes »

thanks.
wroking
Спасибо сказали: