![]() |
[IPTABLES] open ext access to web server on GW server
[SOLVED ! See last post]
Hi ! Have a Zope Web Server running fine on my LAN gateway/firewall PC, But I found impossible to open access to this Web Server from outside the LAN :( * Here is the LAN : Static IP ethernet ADSL modem | | [eth0] gateway/firewall PC with iptables & Zope Web Server [eth1] | | LAN gateway/firewall PC's /etc/hosts file is : Code:
127.0.0.1 localhostCode:
iptables -A INPUT -p tcp -i eth0 --dport [Server_Port] --sport 1024: \Despites, I have full access to it from a LAN PC with public IP:PORT :confused: I'm way too new to IPTABLES to analyze the logs :eek: but here's what i see when a guy tries to access the Web server : Code:
Aug 26 20:59:31 llewellyn IN=eth0 OUT= MAC=00:40:f4:49:e6:3e:00:07:cb:02:3c:3e:08:00 and 3442 that guy's source Port & XXXX the port my web server is listening to. Any advice would be really appreciated :newbie: |
How do your OUTPUT rules look like? You need to allow the answers out.
|
Mara, of course yes !
Here it is (only changed length of lines) : Code:
#---------------------------------------------------------------Wouldn't one think it is enough for my purpose (access to the server on Gateway) :confused: |
This double instruction (OUTPUT authorized for Established,Related & INPUT for New) should have been sufficient, isn't it ?
Allllllllright I found an *intéressant* script for configuring / debugging IPtables: Arno's IPtables-firewall Now the Web Server is open (and others rules that worked fine are still there :). Plus, this script really make it much more easier for editing IPtables, and print easy-to-read Logs :D Quote:
|
| All times are GMT -5. The time now is 02:12 PM. |