Results 1 to 2 of 2
  1. #1

    Default IPTABLES ON RED HAT ES 4?


    Hello guys, I had a little problem with a linux router that im doing.. Im trying for port forwarding for my internal email server...

    Here's my scenario:

    Suppose my Public IP is 203.x.x.x, which is the address of my linux router.. I want to forward requests on Ports 110 and 25 on my Public IP to my internal machine which is 192.169.100.x, which is my email server...

    My problem is that my linux router doesnt forward those requests to the internal email server... if you issue "nmap -sT 203.x.x.x", results shows that ports 110 and 25 are already open...

    I've been googling this but it seems every solution i tried, it seems that it isn't working... I already recompiled my kernel and uses the latest kernel, but still doesn't work...

    I really appreciate your help on this matter...

  2. #2

    Default Re: IPTABLES ON RED HAT ES 4?

    3 possible ways... DNAT, SNAT or just simple port forwarding.

    You can try this:

    iptables -t nat -A PREROUTING -p tcp -d 203.x.x.x --dport 110 -j DNAT --to-destination 192.x.x.x

    Or if you want full NAT:

    iptables -t nat -A PREROUTING -d 203.x.x.x -j DNAT --to-destination 192.x.x.x

    For SNAT, it's:

    iptables -t nat -A POSTROUTING -s 192.x.x.x -j SNAT --to-destination 203.x.x.x

  3.    Advertisement

Similar Threads

 
  1. Red Hat Enterprise Linux for Free? Here's How...
    By mannyamador in forum Alternative Systems
    Replies: 24
    Last Post: 02-04-2016, 05:27 PM
  2. Help on Red Mobile
    By Solando in forum Networking & Internet
    Replies: 0
    Last Post: 03-29-2011, 08:20 PM
  3. RED works on any phone starting today, not just 3G!
    By jntio in forum General Discussions
    Replies: 20
    Last Post: 05-06-2009, 10:42 PM
  4. LINUX Red Hat need asssistance.
    By afortaliza in forum Software & Games (Old)
    Replies: 15
    Last Post: 09-24-2005, 10:00 PM
  5. floopy disk drive in linux red hat
    By afortaliza in forum Software & Games (Old)
    Replies: 1
    Last Post: 09-18-2005, 07:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top