|
#iptables -t nat -A
PREROUTING -p tcp -d <YOUR_INET_IP> -j DNAT --to-destination
<YOU_LAN_IP> I think the rule above have to work. I assume you have compiled the kernel with needed support [EMAIL PROTECTED] wrote: Hi all! I have a linux box with 2 network interfaces: external (connected to the Internet) and internal (connected to my LAN). The box acts as a firewall, I'm also doing NAT. I have several ports open on the box itself and have set up port forwarding to a few machines on the LAN. I want any connection from the Internet to the box that isn't caught by any rule (I use iptables) to be redirected to a pre-defined machine in the LAN. For example: I don't run telnet server on the box and I don't forward port 23 to the LAN. If someone connects to the box on port 23, I want the connection to be forwarded to a specific machine in the LAN. P.S. I don't want to specify each port I want to be forwarded, but rather forward all traffic at once.Any ideas are appreciated, Alex -------------------------------------------------------------------------- Haifa Linux Club Mailing List (http://www.haifux.org) To unsub send an empty message to [EMAIL PROTECTED] |
- [Haifux] DMZ Variant landau_alex
- RE: [Haifux] DMZ Variant Slava Shklyar
- RE: [Haifux] DMZ Variant landau_alex
- RE: [Haifux] DMZ Variant landau_alex
- Re: [Haifux] DMZ Variant Slava Shklyar
