I have a linux box that acts as router, dhcp-server (and proxy) . On my LAN side i need two subnets to have enough IP's: 192.168.100.0 - 192.168.101.255 - is the range I need. Both subnets must be able to reach the internet through my linux box,
On eth1 (em1) i have my internet modem connected with a static ip
On eth2 (em2) I have my LAN connected with the following settings:
IPv4
IP-address: 192.168.100.1
Broadcast address: 192.168.101.255
Subnet masq: 255.255.254.0
Default gateway: 192.168.100.1
My routing table is as follows:
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface
default 56343ffe.rev.st 0.0.0.0 UG 0 0 0 em1
86.52.0.0 * 255.255.192.0 U 1 0 0 em1
192.168.100.0 * 255.255.254.0 U 1 0 0 em2
192.168.101.0 * 255.255.255.0 U 0 0 0 em2
All traffic from port 80 is redirected to my proxy in shorewall - and this works fine - all hosts can acces websites,youtube etc. (port 80). All other traffic is masqueraded - but traffic to other ports is a problem - eg. microsofts DRM license server AVG update server - unreachable!? But I believe something is misconfigured in the routing table ?? My firewall accepts all outbound traffic after redirecting port 80 traffic.
Thanks in advance for any help !
Edit - ouput from my firewall (i have substituted the numbers in the internet address with xxx.xxx):
Chain PREROUTING (policy ACCEPT) target prot opt source destination dnat all -- anywhere anywhere
Chain INPUT (policy ACCEPT) target prot opt source destination
Chain OUTPUT (policy ACCEPT) target prot opt source destination
Chain POSTROUTING (policy ACCEPT) target prot opt source destination em1_masq all -- anywhere anywhere
Chain dnat (1 references) target prot opt source destination loc_dnat all -- anywhere anywhere
Chain em1_masq (1 references) target prot opt source destination SNAT all -- 192.168.100.0/24 anywhere to:86.52.xxx.xxx SNAT all -- 192.168.101.0/24 anywhere to:86.52.xxx.xxx
Chain loc_dnat (1 references) target prot opt source destination REDIRECT tcp -- 192.168.100.0/24 anywhere multiport dports h ttp,squid redir ports 8080 REDIRECT tcp -- 192.168.101.0/24 anywhere multiport dports h ttp,squid redir ports 8080