LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Routing ppp and a null modem cable

[ILUG] Routing ppp and a null modem cable

Bryan O'Donoghue bryano at europlex.ie
Tue Aug 17 11:09:44 IST 2004


To be honest, I've gone and cheated a little bit and just used iptables and slip.

#########################################################
			SERVER
#########################################################

slattach -p slip -s 9600 /dev/ttyS0 &

ifconfig sl0 192.168.3.1 pointopoint 192.168.3.2

modprobe iptable_nat

iptables -t nat -A POSTROUTING -s 192.168.3.0/24 -d ! 192.168.3.0/24 -j MASQUERADE

iptables -t nat -A POSTROUTING -s 192.168.3.0/24 -d 192.168.3.0/24 -j ACCEPT

iptables -A INPUT -s ! 192.168.3.0/24 -d 192.168.3.0/24 -m state --state 
ESTABLISHED -j ACCEPT

iptables -A INPUT -s 192.168.3.0/24 -d ! 192.168.3.0/24 -m state --state 
NEW,ESTABLISHED -j ACCEPT


#######################################################
			CLIENT
#######################################################

slattach -p slip -s 9600 /dev/ttyS0 &

ifconfig sl0 192.168.3.2 pointopoint 192.168.3.1

ip route add 10.100.100.0/24 via 192.168.3.1

--------------------------------------------------------

At which point pinging 10.100.100.x works from the box on the other side of the 
slip connection.

Blah

-- 
Bryan O'Donoghue
Embedded Software Engineer

Europlex Technologies Ltd
Clonshaugh Business & Technology Park
Dublin 17
Ireland

T:+353 (0) 1 2500500
F:+353 (0) 1 2500590
E:bryano at europlex.ie
W:www.europlex.ie


This message (including any attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorised use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change.  Imetrex Technologies Ltd shall not be liable for the improper or incomplete transmission of the information contained in this communication nor for any delay in its receipt or damage to your system. Imetrex Technologies Ltd does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference. This communication does not create or modify any contract, and unless otherwise stated, is not intended to be contractually binding.  Views or opinions expressed in this e-mail message are those of the author only.



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell