Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


seting up a socks proxy

Posted on 1999-10-22
Medium Priority
Last Modified: 2006-11-17
i have a comp with lynx OS directly connected to internet. how can i make it a SOCKS Proxy server ?? i have to install some proxy s/w or i can use any command like ipfwadm to configure it ?? coz' i want to access internet from a m/c in network which is not connected to internet.
Question by:mohitdas
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2

Expert Comment

ID: 2155995
I would suggest using ipfwadm or ipchains unless content / access control is important to you.  The socks5.conf file is a nice quick way to set acess permisions.  What version of Linux are you using ?

Accepted Solution

fatalerror080298 earned 150 total points
ID: 2156537
On the client machine(s):
Go into the network options..  Go into the properties of the protocol for the network adapter (TCP/IP for whatever adapter you are using) and set the default gateway to the IP address of the server (I use

On the Linux box:
If you are directly connected to the internet through a NIC in your Linux machine then these 3 commands should work just fine for you:
  ipchains -P forward DENY
  ipchains -A forward -i eth0 -j MASQ
  echo 1 > /proc/sys/net/ipv4/ip_forward

This assumes you have ipchains available to you...

This works like a charm on my Linux box at home...  If you want more information about ipchains in general you can go to

Also, I know that is a RedHat site but as long as you have ipchains available to you it will not matter...

You will also notice that I used eth0 for the interface...  If you are using a dial up then it will probably be ppp0...  (Or whatever interface is directly connected to the internet)

Author Comment

ID: 2157768
thanx fatalerror. but it will be better if u can provide the solution using ipfwadm  rather than ipchains. i'm using a version 2.5.0 of linux.
How To Install Bash on Windows 10

Windows’ budding partnership with Canonical has certainly led to some great improvements. One of them being the ability to use Bash on your Windows machine without third party applications! This might be one of the greatest things a cloud engineer in a Windows environment can do!


Expert Comment

ID: 2158950
Hmm...  I haven't done it with ipfwadm yet but I will research that one...

Expert Comment

ID: 2158977
Create a bash script like this and throw it in your rc.local

echo 1 > /proc/sys/net/ipv4/ip_forward
ipfwadm-wrapper -F -p deny
ipfwadm-wrapper -F -a m -b -S -D
/sbin/modprobe ip_masq_irc
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_raudio would be changed to match your internal network.

Expert Comment

ID: 2160199
That is similar to the answer I found as well...  Here is the information I found:

Enabling IP masquerading for other machines in your local network is very simple. First, check the network initialisation scripts (/etc/sysconfig/network should be the right place) to see if they contain a line that reads FORWARD_IPV4=true. It's used to set /proc/sys/net/ipv4/ip_forward to 1 when the network subsystem comes up.

Add these lines to /etc/rc.d/rc.sysinit:

# default: packets cannot go reach the outside
/sbin/ipfwadm -F -p deny
# allow all machines on the local network to reach the Internet
/sbin/ipfwadm -F -a m -S -D
# alternatively, allow only these two machines
# /sbin/ipfwadm -F -a m -S -D
# /sbin/ipfwadm -F -a m -S -D

I found this information at:

Expert Comment

ID: 2160201
Oops..  Sorry about that stuff after the URL..  Not sure how that got in the clipboard copy...

Featured Post

Not sure which OpenStack Certification to get?

So you’ve realized you might want to get certified in OpenStack, but you’re not sure what the benefits might be or even which one you should take. You know there are several certification courses you can choose from, but how do you know which one is right for you?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question