Simple PortForwarding [FULL]

Joined
Sep 9, 2008
Messages
582
Reaction score
12
Simple PortForwarding [FULL]


Ok, Alot of People are asking for guides in Port Forwarding
And Alot Of People are using Hamachi w/c makes there server limited in access
&& i jsut want to post^__^ haha

ok, i know theres alot of guide for this already but ill make this noob friendly^__^

STEP ONE
ok 1st we need programs[because if i give a manual guide alot of people wont understand!]

Programs Needed:

Simple Static IP : http://www.pcwintech.com/node/30
Simple Port Forwarding : http://www.pcwintech.com/node/8
Optional : bcoz these ones are not for Free
PFConfig - https://portforward.com/store/pfconfig.cgi
Port-Trigger - http://www.portforward.com/store/porttrigger.htm\

Now lets start w/ the Guide

1st download those files, ex. Simple Static & Portforwarding

Now Download these Files && Install

STEP TWO


1st is use the Simple Static IP,
this will make your Lan IP static
we need static lan ip for the portforwarding cuz if we use dynamic, ur ip will keep on changing^__^ ok?

now run Simple Static IP!
Now as you can see at the top theres a Network Adaptor List Box,
Click the dropdown and choose the Network Adaptor that is connected to the internet
now after selecting
You will now see IP,Subnet,Gateway, etc...
You can Click Enable Static IP!
&& Voila Thats Done^_^

Optional Note * Try New Info IP: 192.168.1.200+ ok? try above 200+ just click Randomize New IP! till you get 200+ ok?
ill explain later why^__^

but in linux the way is this^__^

credits to SiteAid

hi,create a sh and run it from root directory

# FLUSH RULES
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F
iptables -X
# ALLOW LOCALHOST
iptables -A INPUT -t filter -s 127.0.0.1 -j ACCEPT
# FLUSH RULES
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -F
iptables -X
# ALLOW LOCALHOST
iptables -A INPUT -t filter -s 127.0.0.1 -j ACCEPT
# SERVICES
# SSH
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
#http
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
# LOGIN
iptables -A INPUT -p tcp --dport 2106 -j ACCEPT
# INTERNAL
iptables -A INPUT -p tcp --dport 9014 -j ACCEPT
# GAME
iptables -A INPUT -p tcp --dport 7777 -j ACCEPT
# MYSQL
iptables -A INPUT -p tcp --dport 3306 -j ACCEPT
#ts
iptables -A INPUT -p udp --dport 8767 -j ACCEPT
#ts-ad
iptables -A INPUT -p tcp --dport 14534 -j ACCEPT
#ts-2
iptables -A INPUT -p udp --dport 8768 -j ACCEPT
#ts-3
iptables -A INPUT -p udp --dport 8769 -j ACCEPT
#ts-q
iptables -A INPUT -p tcp --dport 51234 -j ACCEPT
#cod4
iptables -A INPUT -p udp --dport 20800 -j ACCEPT
#cod4-4
iptables -A INPUT -p udp --dport 20810 -j ACCEPT
#cod4-4-4
iptables -A INPUT -p udp --dport 28960 -j ACCEPT
#cod4-1
iptables -A INPUT -p udp --dport 28961 -j ACCEPT
#cod4-2
iptables -A INPUT -p udp --dport 28962 -j ACCEPT
#cod4-3
iptables -A INPUT -p udp --dport 28963 -j ACCEPT

# BLOCK THE DEVIL
iptables -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP
iptables -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN FIN,SYN -j DROP
iptables -A INPUT -p tcp -m tcp --tcp-flags SYN,RST SYN,RST -j DROP
iptables -A INPUT -p tcp -m tcp --tcp-flags FIN,RST FIN,RST -j DROP
iptables -A INPUT -p tcp -m tcp --tcp-flags FIN,ACK FIN -j DROP
iptables -A INPUT -p tcp -m tcp --tcp-flags ACK,URG URG -j DROP
iptables -A INPUT -p tcp -m tcp --tcp-flags PSH,ACK PSH -j DROP
# ALLOW NEW CONNECTIONS (JUST IN CASE)
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
# DROP USELESS UDP/ TCP
iptables -A INPUT -p udp -j DROP
iptables -A INPUT -p tcp --syn -j DROP
# BLOCK ICMP (PING/ TRACEROUTE ETC)
iptables -A INPUT -p icmp -j DROP
# LIST RULES
iptables -L -v
Still dont get it? go to this guide!!! http://www.pcwintech.com/node/30

STEP THREE

so now lets go to the portforwarding proper

Run Simple Port Forwarding,
Now Select A router

If you router is there! Well Good For You!^__^

Now Click The + Button below

now will add a new port
Name: http
Type: TCP/UDP
StartPort: 80
EndPort: 80
IP Address : The Static IP Address ok?
Then Click Add

Now you may click Update Router
&& Voila! your port 80 is forwarded you can now host a website^_^

now let me give u another example forwarding port 23000


now will add a new port
Name: FlyffLogin
Type: TCP
StartPort: 23000
EndPort: 23000
IP Address : The Static IP Address ok?
Then Click Add

do you get the pattern? now if you want to Forward more ports follow that pattern^__^

If you still cant really understand Check This http://www.pcwintech.com/node/8

Now if your modem/router is not supported by simple port forwarding
visit this site and look for your router
http://www.portforward.com/english/routers/port_forwarding/routerindex.htm
Now if you found your router click it and find the HTTP[/B] guide.^__^

Now click it & follow that guide^__^

& FOLLOW IT!
OTHER CHOICES!!!
ok let me give a an extra tip, Read This Carefully, specially to people who cant find a router guide anywhere

#1 Find the default gateway on your computer.

This means if on, Windows.. Go to Start -> Run.

Type in cmd and press enter.

In the new Window, called the command prompt, type in ipconfig /all and press enter.

#2 With your web browser, go to the default gateway discovered. It should take you to the siemens se260.

#3 In the router will be a WAN IP. Please make sure, that the WAN IP in the router matches the external IP as shown at http://www.portforward.com/default.htm

#4 Find the DHCP range of the router. This should be something about a Starting and Ending IP Or Starting IP and the number of users.

#5 Make sure to set a static IP outside of that range on your computer.

http://www.portforward.com/networking/staticip.htm


For steps 4 and 5, they may or may not be required. Some routers, are lot more picker than others.

Ok, example..

--

Portforwaring, Enable.

Protocol: Both

Comment: 90

Enable: Checked

Local IP Address: The LAN IP that is on your computer. That could be a static IP..

Local Port: 80-80


Remote Address: Leave blank, if you can. If you can not leave it blank, enter in 0.0.0.0

Note! Where blank, means you do not fill it in.

Public Port: 80-80

Interface: Any

Press add.

--
ok? get it?

*notes FAQ
to know whats your router/modem?
Open a webbrowser like firefox/Internet explorer
and type in mostly thats it!
but sometimes its not so follow this

Find the default gateway on your computer.

This means if on, Windows.. Go to Start -> Run.

Type in cmd and press enter.

In the new Window, called the command prompt, type in ipconfig /all and press enter.

Find Default Gateway and type it in the browser^_^

please reply to this post if you really need help^__^


Now Lets Talk About Portforwarding for CABAL Online



Credits to Ellemen^__^



1. Go to This site


Code:
http://www.portforward.com/english/routers/port_forwarding/routerindex.htm
Find your router model Example: ( D-LINK DSL-2740B )

Unblock this port for Windows:

1433 - SQL SERVER CONNECTION

Unblock these ports for Linux:

22 - SSH

80 - PSS

38170 - GlobalMgrSvr

38180 - GlobalAgentSvr

38181 - DBAgent

38121 - NETLIB / CHATNODE

38101 - NETLIB LOGIN SVR

38111 - NETLIB WORLD SERVER

38190 - CashDbAgent

Please make it sticky ;)

Thanks ;) :2gunsfiring_v1::smilie_xp


Credits to Cypher

If your Router/Modem Supports RAnged port forward w/c most routers do, thats the start ip & end ip
you can forward ports 37000-39000 w/c is StartIP-EndIP
So now, all ports needed to be forwarded is already forwarded!^__^

note * remember that the local ip is your CENTOS LAN IP^__^
ok?:thumbup:
FAQ's
What My Default Gateway?
How to Log into your Router Page when you dont know the Default Gateway

You can log into your router page using your browser, if you have your default gateway address. All you need to do is type your default gateway address in the Address bar of your browser and hit enter. This will take you to the router login page.



If you don
 
Last edited:
Back