Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gateway....
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
furkan
Guru
Guru


Joined: 11 Dec 2003
Posts: 520
Location: Montreal CA

PostPosted: Thu May 20, 2004 6:28 pm    Post subject: gateway.... Reply with quote

hi all....i have one question.....

i have two computer i give name first computer names HostComputer and second computer names ClientComputer and in HostComputer i have one connection dialupi would like to know how can i use internet connection of HostComputer i mean gateway how can i do it ?
Back to top
View user's profile Send private message
furkan
Guru
Guru


Joined: 11 Dec 2003
Posts: 520
Location: Montreal CA

PostPosted: Thu May 20, 2004 6:29 pm    Post subject: Reply with quote

but without program :)
Back to top
View user's profile Send private message
furkan
Guru
Guru


Joined: 11 Dec 2003
Posts: 520
Location: Montreal CA

PostPosted: Fri May 21, 2004 2:31 pm    Post subject: Reply with quote

ok i know how :) it is with iptables and for file transfer is scp (if i remember :) ) but in livecd how can i do it i mean to sharing internet ?
Back to top
View user's profile Send private message
Andersson
Guru
Guru


Joined: 12 Jul 2003
Posts: 525
Location: Göteborg, Sweden

PostPosted: Fri May 21, 2004 3:21 pm    Post subject: Reply with quote

If HostComputer has iptables installed, you need to run these commands (replace eth0 with the interface HostComputer uses to connect to the internet):
/bin/echo "1" > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

You also need to let www traffic through:
/sbin/iptables -A FORWARD -p tcp --dport 80 -j ACCEPT
/sbin/iptables -A FORWARD -p tcp --dport 443 -j ACCEPT


ClientComputer only needs to have HostComputer as the default gateway.

See the ipmasquerading howto for more info.
http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/index.html

You should also create some stronger firewall rules once you get it running :)
Back to top
View user's profile Send private message
furkan
Guru
Guru


Joined: 11 Dec 2003
Posts: 520
Location: Montreal CA

PostPosted: Fri May 21, 2004 8:38 pm    Post subject: Reply with quote

thanks for help :) ( i have thinked nobody will answer :) )
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum