General discussion

  • Creator
  • #2297037



    by dkerta ·

    I have web mail in Lotus Notes system. The web main is in my VLAN. I want to access the web mail from internet. I think I need to create NAT in my LINUX pointing to my web main in VLAN. Please advise how to do it.


All Comments

  • Author
    • #2685193

      Reply To: HOW TO NAT IN LINUX

      by cpfeiffe ·

      In reply to HOW TO NAT IN LINUX

      iptables has a nat policy. you need to enable iptables (if not already done) and set your nats there. The man page for iptables is good so you should be able to figure it out. Good luck.

    • #2686534

      Reply To: HOW TO NAT IN LINUX

      by lordinfidel ·

      In reply to HOW TO NAT IN LINUX

      The actual mechanism in IPTables for inbound NAT is pre-routing, outbound is post-routing….
      aka MANGLE.

      This is all well and good to know the terms, But since you are asking how to do it, probably means that you have not built an IPTables script by hand.

      So, how to you get past your quandry? your in luck, a nifty firewall building tool exists out there called “fwbuilder” (

      Get yourself a linx box and install it with kde or gnome, download the binaries off of fwuilders site. You will need 5 of them, and install the gcc and gtkmm packages first.

      fwbuilder is a gui based, drag and drop firewall builder, and will easily allow you to build your NAT table.

      But none of this will do you any good if you do not understand basic firewall building. So I strongly suggest, at the minimum you need to get these 2 books.

      1. Linux Firewalls (new riders)
      2. Building Internet Firewalls, 2nd Edition (o’reilly)

    • #3370472

      Reply To: HOW TO NAT IN LINUX

      by richard.lindgren ·

      In reply to HOW TO NAT IN LINUX

      First you will have to determine if it is NAT you have to enable.
      If you are using a public IP address for internet on your gateway/firewall and several private IP addresses on the inside then you need NAT. If this is the case and you can surf the web from inside then NAT is already setup.

      If you can’t reach your web mail from the outside then you will have to setup a port-forward, known as DNAT in the iptables system. If you get fwbuilder up and running as mentioned in one of the other answers then there should be no problem.

      Outherwise you will have to use the shell command iptables. This page gives a short instruction on how to do it:
      This page gives a more thorough description:

    • #3370113

      Reply To: HOW TO NAT IN LINUX

      by subhashanarayan ·

      In reply to HOW TO NAT IN LINUX

      The system where the webmail is installed has got static ip address??. Assuming you have static IP and linux version 8.0 and above. in terminal execute this command
      iptables -t nat -A POSTROUTING -o -j MASQUERADE.
      external interface is eth0 or 1

      this will solve your problem

    • #2684340

      Reply To: HOW TO NAT IN LINUX

      by invite_anil ·

      In reply to HOW TO NAT IN LINUX

      check this link this should resolve ur prb..

    • #3136443

      Reply To: HOW TO NAT IN LINUX

      by fakrulalam ·

      In reply to HOW TO NAT IN LINUX

      I think you can do it without iptables/ipchains.
      Pls run webserver (apache) in you gateway. And from httpd.conf file redirect any request on port 80 to your lotus notes server. I mean if any one browse the gateway will redirect to the webmail server.

Viewing 5 reply threads