Hi,
I have an airtel broadband connection. My modem is airtel 220bx
ethernet modem. This modem is connected to Dlink wirless router di524.
My laptop(wirless) and my desktop(ethernet) are connected to this
router.
Now I want to be able to access an application running on my laptop
listening on port (say 3180) using my public ip address. I have setup
virtual servers on my wirless router to forward port 3180 to my laptop
ip address (192.168.0.119). On my DSL router I have setup virtual
server to forward port 3180 to the wirless router ip (192.168.1.2). I
can verify that my wirless router is doing things right as if i access
http://192.168.1.1:3180/ from my browser my application receives a
request. But the problem is if i use my public ip to access the
application it doesnt work. i.e. if i access
http://122.122.122.163:3180/   I get a connection could not be
established error.

>From my DSL router system log I can see the following 2 entries when I
setup the virtual server

iptables -t nat -A PREROUTING -i ppp_1_32_1 -p tcp --dport 3180 -j
DNAT --to 192.168.1.2
iptables -I FORWARD 1 -i ppp_1_32_1 -p tcp -d 192.168.1.2 --dport 3180 -j ACCEPT

I dont really know where am I going wrong. And I cant find anyway to
debug whats going wrong. I would appreciate any help.

-- 
Puneet
http://sahyog.blogspot.com/
Latest Post: Tutorial on SVN setup and usage

_______________________________________________
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - February 22-24, 2008
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Reply via email to