Sharing internet connection with iptables
I am on a wide campus network and network administrator of my hostel. Hostel server is running RH 7.3. Now the problem is that there is a senior student in my hostel who has been provided access to a proxy server, say 192.168.1.1 ... which lays far away across a number of hops...
I tried to SNAT on hostel server using
iptables -t nat -A POSTROUTING -s <myIP> -d 192.168.1.1 -j SNAT --to-source <senior'sIP>
Now i was connected to the proxy but the senior was no longer connected. Is there anyway that we both can use his connection???
Don't tell me to run proxy on senior's pc... I don't want the senior to know that i am using his connection... Just tell me something that i related only and only to my hostel's server...