This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Help with server...... PLEASE need a solution

Here is what I got going on I have a DSL connection with 5 static IP's I am running a webserver / mailserver and using the proxy part for the mailserver (which is working just fine) 

Proxy picks up port 25 smtp and passes to my mailsever 192.168.1.103 that all works great. 
What does not work is my webserver.... I have read the manual as far as setting it up and I have done all of those things I made a definition called Linux_server 192.168.1.103
I have made DNAT/SNAT to linux server I also have made a packet filter to allow traffic to it... I have checked the logs and on outside IP's trying to access the webserver and I do not see in the logs where it is getting dropped as a matter of fact I dont see any log entry for anyrthing to do with port 80 its driving me nuts.... My webserver does use mysql and PHP and was working with the rules that I made and somehow now it decided not to work.. so not sure what happened ... I have looked until I am BLUE about ready to give up...  

I need also for this to do IMAP as well as HTTP and HTTPS I will gladly post my entire config if anyone thinks this will help...I am no expert ....

Thanks...

  


This thread was automatically locked due to age.
Parents
  • Did you check the routing and gateway settings of your Webserver? Does the default gateway point to your ASL ?

    Cheers Bagira  
  • Ok not sure what you are talking about here my default gateway is for external interface 66.136.X.X
    my gateway for the internal Interface is 192.168.1.2
    my webserver sits at 192.168.1.103   
  • In your ASL configuration you should only have a Default Gateway assigned on you external interface. The other interfaces should have "None" in the default gateway field. The default gateway assigned on your Webservers NIC configuration should be the  interface of your ASL where the webserver connects. 
  • I have taken the default gateway out of the internal_interface and put it to none the only gateway that I have now is my external one 66.136.X.X and I still cannot access my webserver unless doing it through the local IP 192.168.1.103 any suggestions ?   
  • Here is a copy of whats going and it seems to be right but no matter what I do I cannot make it happen .....
    Chain NAT_OUTPUT (1 references)
     pkts bytes target     prot opt in     out     source               destination         
        0     0 DNAT       tcp  --  *      *       0.0.0.0/0            66.136.x.x     tcp spts:1024:65535 dpt:80 to:192.168.1.103 

    Chain NAT_POST (1 references)
     pkts bytes target     prot opt in     out     source               destination         
     3067  484K MASQUERADE  all  --  *      eth1    192.168.1.0/24       0.0.0.0/0          

    Chain NAT_PRE (1 references)
     pkts bytes target     prot opt in     out     source               destination         
        4   192 DNAT       tcp  --  *      *       0.0.0.0/0            66.136.x.x     tcp spts:1024:65535 dpt:80 to:192.168.1.103 

      
Reply
  • Here is a copy of whats going and it seems to be right but no matter what I do I cannot make it happen .....
    Chain NAT_OUTPUT (1 references)
     pkts bytes target     prot opt in     out     source               destination         
        0     0 DNAT       tcp  --  *      *       0.0.0.0/0            66.136.x.x     tcp spts:1024:65535 dpt:80 to:192.168.1.103 

    Chain NAT_POST (1 references)
     pkts bytes target     prot opt in     out     source               destination         
     3067  484K MASQUERADE  all  --  *      eth1    192.168.1.0/24       0.0.0.0/0          

    Chain NAT_PRE (1 references)
     pkts bytes target     prot opt in     out     source               destination         
        4   192 DNAT       tcp  --  *      *       0.0.0.0/0            66.136.x.x     tcp spts:1024:65535 dpt:80 to:192.168.1.103 

      
Children
No Data