Thanks. Had the router been Linux I could have simply
written all these. But the main problem is I have to
write all these in the router OS.
I am not sure if the DSL router is running on Linux,
Even if it is, I cant telnet to it and get a shell
prompt.
The only way to access the router is through the web
interface and through telnet (which doest give any
shell prompt :(.


--- Sanjay Upadhyay <[EMAIL PROTECTED]> wrote:

> Yes its prefectly possible...
> lets say your outgoing connection is ppp0 and the
> internal lan is
> connected through eth0. then the following should
> achieve the goal...
> (port forwarding logically unrelated at the ISP end,
> hence I presume
> it should be unrelated to wether we take tata, or
> BSNL)
> $EXTERNALIP = {ppp0's ip address}
> $DESKTOPIP = { Your Desktop's IP }
> 
> iptables -I  INPUT -i ppp0 -d $EXTERNALIP -s
> 0.0.0.0/0 --dport 8080 -j ACCEPT
> iptables -I FORWARD -p tcp -i ppp0 -o eth0 -d
> $DESKTOPIP--dport 8080
> --sport 1024:65535 -m state --state
> NEW,ESTABLISHED,RELATED -j ACCEPT
> iptables -t nat -I PREROUTING -p tcp -i ppp0 -d
> $EXTTERNALIP --dport
> 8080 --sport 1024:65535 -j DNAT --to $DESKTOPIP:8080
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around 
http://mail.yahoo.com 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3

Reply via email to