Common probably and I'm sure I've solved this before at another school but for the life of me can't figure it out this time!
We have a private IP range routed on to our County's larger private IP range. Web request go through an onsite proxy server on port 1080 and are then forwarded to another Countywide proxy server before reaching the wider Internet.
We are looking at investing in either Kindles or Android tablets and are having problems with entering proxy settings, or the lack of support for these settings.
So the solution is to set up a router on our network to route traffic from a new private range onto our existing private range and in the process transparently redirect port 80 requests to our proxy server.
Hopefully that makes sense.
Here's what I've done:
Set up a Hyper-V virtual machine with two NICs and installed CentOS 6.1 i386 minimal. Eth0 is on our existing range (10.96.22.100) and eth1 is on the new range (172.16.20.1)
Here are router setting's I've tried:
On the Kindle, the Android tab and my iPhone I've tried the following settingsCode:#/etc/rc.local modprobe ip_conntrack modprobe iptable_nat #/etc/sysctl.conf echo 1 > /proc/sys/net/ipv4/ip_forward #iptables iptables --flush iptables -t nat --flush iptables --delete-chains iptables -t nat --delete-chains iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to 10.96.22.5:1080 iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE iptables-save > /etc/sysconfig/iptables service iptables stop service iptables start chkconfig iptables on service iptables status
Can anyone point me in the right direction to get this working?Code:Static IP: 172.16.20.5 Netmask: 255.255.0.0 Gateway: 172.16.20.1 DNS: 10.96.22.11
Thanks
Terry.



LinkBack URL
About LinkBacks
Reply With Quote


