답변 감사드립니다.
말씀하신대로 해봤더니...
[root@mail root]# iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- anywhere anywhere tcp dpt:3000 to:192.168.0.55:3000
DNAT tcp -- anywhere 192.168.0.1 tcp dpt:3000 to:192.168.0.3:3000
DNAT tcp -- anywhere samba tcp dpt:3000 to:192.168.0.3:3000
DNAT tcp -- anywhere samba tcp dpt:1111 to:192.168.0.55:1111
DNAT tcp -- anywhere 192.168.0.1 tcp dpt:1111 to:192.168.0.55:1111
DNAT tcp -- anywhere anywhere tcp dpt:1111 to:192.168.0.55:1111
DNAT udp -- anywhere anywhere udp dpt:3333 to:192.168.0.1:3333
DNAT tcp -- anywhere samba tcp dpt:webcache to:192.168.0.1:3333
DNAT tcp -- anywhere samba tcp dpt:3333 to:192.168.0.1:3333
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- anywhere anywhere
MASQUERADE all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@mail root]#
위와같이 iptable이 변경되었습니다.
그런데 192.168.0.55에서 ftp서버(서브유)의 포트를 3333으로 변경하고 거기에 접속을 시도해봤
는데 여전히 접속이 안되더군요..
여기서 더 무엇을 해봐야 됩니까... 좀더 조언부탁드립니다.
: : 현재 리눅스 박스에 211.193.30.171 고정아이피를 가진 랜카드(eth0)와
: : 192.168.0.1 내부아이피를 가진 랜카드(eth1) 두개가 달려있습니다.
: : 아래그림처럼
: :
: : ----- 랜카드(211.193.30.171)
: : 인터넷 ---- 리눅스---|
: : ----- 랜카드(192.168.0.1) : 이놈이 게이트웨이
: :
: : 여기에 매스커레이딩해서 내부고정아이피로 여러대의 피시를 사용하고 있는
: : 데...그 중에 한놈(192.168.0.55)을 이용해서 서버로 사용하고 싶습니다. 현
: : 재 192.168.0.55에는 윈도2000에 아파치와 서브유를 깔았습니다.
: : 아래 그림처럼
: :
: : ---- ....
: : 랜카드(192.168.0.1)---|
: : ---- 랜카드(192.168.0.55) : 윈도2000(아파치,서브
: : 유)
: :
: : 이해하시죠?
: :
: : 포트포워딩을 하려고
: : iptables -t nat -A PREROUTING -p tcp -d 192.168.0.1 --dport 3000 -j
: : DNAT --to 192.168.0.55:3000
: :
:
: 설정방법-1.
: iptables -t nat -A PREROUTING -i eth0 -p udp --dport 808x -j DNAT --to 192.168.0.1:808x
:
: 설정방법-2.
: iptables -A PREROUTING -t nat -p tcp -d 211.193.30.171 --dport 8080 -j DNAT --to-dest 192.168.0.1:8080
:
: 이렇게 해보세여...