port forwarding

frankwas

Member
Joined
Nov 19, 2003
Messages
10
Hi all!

Can someone please tell me how to set up port forwarding on the Telkom ADSL Router POTS?

Thanks,

Frank.
 

tjoppie

Well-Known Member
Joined
Sep 9, 2003
Messages
130
I am having a REALLY hard time setting up PAT on my pots router... everything is setup accordingly (I think) but no luck [V]

Could someone please help me with this. I use a win2000 machine as the "server" which I only want ftp to be able to be seen via the web, which i will use for personal stuff. I even downloaded the manual on the support page of myadsl, but nothing, not even http works :( what am I doing wrong, why doesnt it wanna route!!!!

Please help me, if anyone can help me "step by step" I would really app it.

//==================
Tjoppie
irc://za.blabber.net/powerchat
 

slaikan

New Member
Joined
Jul 6, 2004
Messages
7
On the left hand side
select basic setup
Select PAT
Then configure so that you have something like this
Protocol = TCP
Interface = ATM1
Service Name = Name of service,eg. SMTP
Port Number = Port Number external users will connect to, eg. 25
Server Ip Address = IP Address of your server
Server Port Number = Port number that you're forwarding to, eg. 25

So we've got it setup like this and it seems to work, in the above example, we made our internal SMTP server available to external clients.

Hope this helps a wee bit?
 

kridian

New Member
Joined
Jul 16, 2004
Messages
2
elo, I have tried the above also but with no success. I wonder if perhaps you don't have any special kind of setup/configuration regarding the bridging of interfaces in your server? So that its more than mere PAT?

--------------------------------
kridian
IRC Technical Operator
KnightNet Medieval IRC Network
South Africa
 

Cybercide

Member
Joined
Jan 18, 2004
Messages
10
I have exaclty the same problem. It seems as if the ADSL POTS router just ignored whatever NAT or PAT entires u make...
Cheap bastids. Netgear here i come unless this get sorted out within the week (i need a webserver up and running for a 3rd year project)
 

kridian

New Member
Joined
Jul 16, 2004
Messages
2
ok i figured it out it seems. when adding forwarding (PAT), i found it necessary to point the 'server IP' to the interface to which the router itself (192.168.10.200) is connected. at work it was necessary to specify ATM1, but at another place it required LAN.

so, just make it point to the interface on the router's subnet. if you then want to rather forward packets to a PC which isnt connected directly to the router, you could do something as follows with Linux and iptables .. (this config assumes that the adsl router is connected to the Linux box)

iptables -A PREROUTING -t nat -p tcp --dport 3389 -j DNAT --to OTHERSERVERIP:3389
iptables -t nat -A POSTROUTING -j MASQUERADE

you would then specify in your PAT settings for port 3389 to be forwarded to linuxbox:3389, then linuxbox forwards the packets to wherever else on the network.

tried, tested and it works :)

just be sure your kernel has IPv4 packet forwarding enabled.
echo 1 > /proc/sys/net/ipv4/ip_forward

---------------------------
kridian
IRC Technical Operator
KnightNet Medieval IRC Network
South Africa
irc://dungeon.knightnet.net/knights
 
Top