I have natd with external interface dc0 and bridge0 with members wi-fi interface rt28600 and cable rl0. The bridge doesn't have IP adress but each of the members have 192.168.1.1 for the internal local network.
What I need redirect from the local network back to the local network.
I meen, the DNS record points to the internet IP and I need redirect of the request:
from the local network --- to the internet IP --- back to the server in the local network.
for example ftp:
seems to work only from internet to the local network, but then I am in the local network and type the internet address, it connects me to the NATD server - 192.168.1.1.
I tryed:
and
and
and also:
All of the rulls togather. Non of them seems to work from the local network to the local network, they redirect only the requests from internet.
Please help, what am I doing wrong and what am I missing.
Thanks in advance.
What I need redirect from the local network back to the local network.
I meen, the DNS record points to the internet IP and I need redirect of the request:
from the local network --- to the internet IP --- back to the server in the local network.
for example ftp:
Code:
redirect_port tcp 192.168.1.102:21 21
I tryed:
Code:
interface bge0 redirect_port tcp 192.168.1.102:21 21
Code:
interface dc0 redirect_port tcp 192.168.1.102:21 21
Code:
interface rl0 redirect_port tcp 192.168.1.102:21 21
and also:
Code:
server# cat /etc/natd.conf | grep -v #
interface dc0
use_sockets yes
same_ports yes
redirect_port tcp 192.168.1.102:21 21
redirect_port udp 192.168.1.102:21 21
redirect_port tcp 192.168.1.102:5900 5900
redirect_port udp 192.168.1.102:5900 5900
interface bge0 redirect_port tcp 192.168.1.102:21 21
interface dc0 redirect_port tcp 192.168.1.102:21 21
interface rl0 redirect_port tcp 192.168.1.102:21 21
interface lo0 redjrect_port tcp 192.168.1.102:21 21
redirect_port tcp 192.168.1.102:3724 3724
redirect_port tcp 192.168.1.102:6112 6112
redirect_port tcp 192.168.1.102:6113 6113
redirect_port tcp 192.168.1.102:6114 6114
redirect_port tcp 192.168.1.102:4000 4000
server#
All of the rulls togather. Non of them seems to work from the local network to the local network, they redirect only the requests from internet.
Please help, what am I doing wrong and what am I missing.
Thanks in advance.