Re: Addressing problem with NATted DMZ



In article <ocvau2-uc2.ln1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Simon Brooke <simon@xxxxxxxxxxxxxx> wrote:

> telnet baz.foo.com 25
>
> it times out, although if I try
>
> telnet 192.168.1.23
>
> it works perfectly.

I'll assume that this is a typo and you meant

telnet 192.168.1.23 25

works. This is happening because your NAT rules specify a particular
interface; something along the lines of

iptables -t nat -I PREROUTING -i eth1 -d 22.22.22.23 -j DNAT --to
192.168.1.23
iptables -t nat -I POSTROUTING -o eth1 -s 192.168.1.23 -j SNAT --to
22.22.22.23

If you remove the "-i eth1" and the "-o eth1", the rules will apply to all
traffic regardless of which interfaces the traffic is coming or going out
on. Whether you really want to do this is another matter. Personally, I'd
configure the 2 boxes to talk to each other using their internal IPs.

> (iii) a popular, reliable and reasonably well supported open source
> firewall which can bind multiple addresses to a single NIC (so Linux
> 2.4 or 2.6 and iptables, rather than 2.2 and ipchains) and which does
> not insist on NATting everything.

Just create a virtual IP; iptables is cool with it.

--

Sak Wathanasin
Network Analysis Limited
http://www.network-analysis.ltd.uk
.



Relevant Pages

  • Re: telnet problem / ping ok
    ... If you are able to initiate a successful telnet to the 1760 from within ... problem with the telnet connection to the Cisco 1760 behind the Cisco ... interface FastEthernet0/0 ...
    (comp.dcom.sys.cisco)
  • Re: Phantom telnet connections
    ... Do you see actual connections on there, ... a QIO interface for management as well as an ... actually built against a 7.2-2 build environment (I know, ... a SHOW SYS indicates only 17 users are logged in with telnet. ...
    (comp.os.vms)
  • RE: Cisco IOS question
    ... I believe that telnet and ssh are run all or none deals. ... this is they are not running on 1 interface per say (well you actually ... LAUNCH - Your Yahoo! ...
    (Security-Basics)
  • Re: PIX 506 forwarding telnet port to home lab UPDATE
    ... open the telnet port to allow access to my home ... access-list 101 line 1 permit tcp any interface outside eq telnet ... access-group 101 in interface outside ...
    (comp.dcom.sys.cisco)
  • Re: Cisco PIX 515 telnet problem
    ... You can only telnet to the outside interface using SSH for security reasons. ...
    (comp.dcom.sys.cisco)