News
:
This forum is now permanently frozen.
m0n0wall Forum
>
m0n0wall Support (English)
>
Firewall/NAT
Topic: port forwarding
Pages: [
1
]
Topic: port forwarding (Read 2644 times)
port forwarding
« on: December 14, 2007, 19:50:00 »
alphabanks
Posts: 3
Guys I'm testing monowall and I have a few questions in regards to port forwarding and mono in general. First off what is the proper way of forwarding ports to a server behind monowall. One thing I did not get in the firewall rule it ask to specify the source port that you are coming from. The destination port is simple of course port 80 if I'm doing web. So my question is how should you know what source port a client is connecting from. I saw this same option also when setting up a nat rule specify source port. So for you mono guys whats the correct way to port forward?
Re: port forwarding
« Reply #1 on: December 15, 2007, 15:07:34 »
albgen
Posts: 43
generally the source and the destination port is the same, but you could have scenario like this:
suppose you have one server and some clients on your lan .This server has a website on port 80 which is an internal web server used by your internal lan clients. Also the server has a web site on port 1234 which is a web site that must be reachable from the internet. In this scenario you must add a rule that set the source port to 80 and destination port 1234.
Re: port forwarding
« Reply #2 on: December 15, 2007, 16:43:45 »
kpa
Posts: 4
Leave the source port range to 'any - any' in the firewall rule. The source port is the port used by the client at the requesting end, it has nothing to do with the forwarded port at your end.
Re: port forwarding
« Reply #3 on: December 20, 2007, 11:54:24 »
apnovi
Posts: 13
Well the NAT Rule would be assigned for the IP address and port that is going to be receving the connection and to specify where it is going to be passed to eg.
NAT
EXTERNAL ADDRESS PORT INTERNAL ADDRESS PORT
212.212.212.3 80 192.168.0.10 80
The Firewall rule is defined for who can use the NAT Rule eg.
For Everyone :-
PROTOCAL SOURCE ADDRESS SOURCE PORT DEST ADDRESS DEST PORT
TCP ANY ANY 192.168.0.10 80
For One IP :-
PROTOCAL SOURCE ADDRESS SOURCE PORT DEST ADDRESS DEST PORT
TCP 213.212.36.36 ANY 192.168.0.10 80
Very oftern source ports unless strictly defined will appear almost anywhere above the 1024 reserved ports so most rules normally allow connections from any source port
Re: port forwarding
« Reply #4 on: December 28, 2007, 21:26:21 »
lalo
Posts: 24
how can i open ports for my amule
i have to open 6340TCP and 6341UDP for 192.168.1.2 in my network how can i do that if i insert a nev rule in the wan amule still connect with a low id...
Pages: [
1
]