Hi there,
I need some help setting up port forwarding.
We have 3 servers, 1x running Ubuntu server (used as transparent proxy), 1x server 2003, 1x windows xp.
The linux box has the following ips:
eth0 (internal) 192.168.1.5
eth1 (external) 192.168.0.7
Windows server 2003:
192.168.1.6
Windows XP:
192.168.1.9
Router:
192.168.0.1
The router automatically forwards spesific ports to 196.168.0.7 (Linux eth0)
From there I want to forward port 8585 to 192.168.1.6 and 3000 to 192.168.1.9
is there a way that I can do this using iptables?
The commands that I think I'm gonna use look like this:
iptables -A FORWARD -s 192.168.0.0/24 -p tcp --dport 8585 -d 192.168.1.6 -j ACCEPT
iptables -A FORWARD -s 192.168.0.0/24 -p tcp --dport 3000 -d 192.168.1.9 -j ACCEPT
Would this be a correct way of doing it?
Also, The proxy captures all data on port 80 and forwards it to 3128 so that the proxy can monitor the usage, and a few systems runs fine with it, others however can ping websites, and internet explorer says "website found, waiting for reply" but the webpages cannot be displayed :-/
I can post the entire routing script should it be needed..
I'm fairly new to linux and this is the first proxy that I've set up.
Ubuntu server port forwarding
-
- Moderator Emeritus
- Posts: 5547
- Joined: 21 Dec 2002, 02:00
- Processor: i7 3770k
- Motherboard: ASUS P8P67-Pro
- Graphics card: 2xNvidia GTX670
- Memory: 16 GB Gskill Sniper
- Location: In SQL Space inserting 'null' on purpose
- Contact:
Re: Ubuntu server port forwarding
What does the gateway do with DNS (53) requests ?
Temporary Absence
Re: Ubuntu server port forwarding
I've descovered now that DNS request doesn't go through anymore.... think I broke itAnthro wrote:What does the gateway do with DNS (53) requests ?