Re: iptables and NAT



Hi ,

On the server where you have the web page you have iptables up and blocking
the 80 port ? the service is up and running ? it's accepting connection from
all interfaces , not only on localhost ?

On Tue, Jan 25, 2011 at 2:17 PM, Jatin K <ssh.fedora@xxxxxxxxx> wrote:

On Tuesday 25 January 2011 05:07 PM, Jorge Fábregas wrote:
On 01/25/2011 06:15 AM, Jatin K wrote:
iptables -t NAT -A PREROUTING -d xx.xx.xx.xx -J DNAT --to-destination
192.168.131.131

but it ends with following error
Hi,

The names of the tables are case-sensitive. It should be nat instead of
NAT.

HTH,
JOrge
Thnx

I'got your point replaced NAT with nat ... saved iptables wiht service
iptable save

but server is not forwarding the packets to the web server

if i try http://xx.xx.xx.xx ( live ip ) .. .. no page is displayed

what it could be ???


--
°v°
/(_)\
^ ^ Jatin Khatri
Registerd Linux user No #501175
www.counter.li.org
No M$

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Relevant Pages

  • Re: IPTable Rule to allow NTP thru ?
    ... gateway doing NAT. ... In addition to IPTables on your server, ... I believe the dsl modem gateway doing NAT would allow everything through properly, but will keep this in mind when I have the right firewall rule. ...
    (comp.protocols.time.ntp)
  • Re: nat block connection for destination on the same network
    ... > i have just recently setup an nat on redhat 7.2, with iptables. ... > a web server setup in the internal/ behind nat and is working fine. ...
    (comp.security.firewalls)
  • Re: Iptables - nat and internet access from server
    ... > server (actually it's a multi-purpose home server). ... You'd better mention the details about iptables settings on the server; ... nat is set, and whether ip-masquerading is correctly set (it sounds fine ...
    (comp.os.linux.networking)
  • Re: Port forwarding to an external server
    ... >>server B. I've tried different options with iptable but without luck. ... If you're using iptables already, ... your forwarding or routing is messed up. ... iptables -t nat -F PREROUTING ...
    (comp.os.linux.networking)
  • Re: How to pass two routers
    ... Is there a way to tell the server at site A to pass all traffic ... iptables, FORWARD, forwarding? ... Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines ...
    (Fedora)