Alright I scoured the internet and web boards before asking this.
I have a static ip address assigned to me from my ISP( 24.148.30.178 ) and I registered a domain name for this ip ( lawrencelane.org ). I have a server that act as a router on my network:
eth0 = local
eth1 = internet
I have my web server on another server on my local network. I have DNS and all that correctly configured. Here are my current configuration for my firewall
firewall (i cant take credit for creating this. I found it on the web, but it does exactly what i want it to!!)
Here are some dumps as well (from the routing server):
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:BA:85:A6:3D
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:80951 errors:0 dropped:0 overruns:0 frame:0
TX packets:87422 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:9525400 (9.0 Mb) TX bytes:72139939 (68.7 Mb)
Interrupt:9 Base address:0x9f00
eth1 Link encap:Ethernet HWaddr 00:A0:CC:36:E0:F6
inet addr:24.148.30.178 Bcast:255.255.255.255 Mask:255.255.255.224
UP BROADCAST NOTRAILERS RUNNING MTU:1500 Metric:1
RX packets:1483631 errors:0 dropped:0 overruns:0 frame:0
TX packets:58630 errors:1 dropped:0 overruns:0 carrier:2
collisions:20386 txqueuelen:100
RX bytes:154143293 (147.0 Mb) TX bytes:7321626 (6.9 Mb)
Interrupt:10 Base address:0xdc00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:9268 errors:0 dropped:0 overruns:0 frame:0
TX packets:9268 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1201457 (1.1 Mb) TX bytes:1201457 (1.1 Mb)
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
24.148.30.160 0.0.0.0 255.255.255.224 U 0 0 0 eth1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 24.148.30.161 0.0.0.0 UG 0 0 0 eth1
* this is the weird one. this is from my log. 192.168.1.254 is the ip of the server with the web server. you can see it is requested with the correct ip and destination port. why is it not sending it back out?? the src ip is my cell phone, its what i use for testing. (wap is enabled on apache and the page does work):
IN=eth1 OUT=eth0 SRC=216.155.165.240 DST=192.168.1.254 LEN=48 TOS=0x00 PREC=0x00 TTL=47 ID=58377 DF PROTO=TCP SPT=47651 DPT=80 WINDOW=24820 RES=0x00 SYN URGP=0
here is the error message I get on my phone: "Gateway received an invalidresponse from the upstream gateway."
spects:
slackware 8.0
kernel 2.4.22
--larry