SuSE 9.2 pro as ICS gateway?

Status
Not open for further replies.

tap0utt

Solid State Member
Messages
8
hi, this is my situation, in which i have been seeking an answer for...

modem ==>wireless router ==> upstairs comp. (ath0 + eth0)

now, i have an older laptop without a built in wireless card, but it has an ethernet port. i want to ics my upstairs SuSE computer to ics with my laptop.

modem ==>wireless router ==>upstairs comp (ics via eth0) ==>laptop

i tried doing the masquerading thing with the firewall, but to no avail.

any ideas how to ics my suse 9.2 pro properly?
 
im confused

ics im assuming means internet connection sharing?

you using the wireless to share the connection or not?I cant tell.

if not, the Suse machine needs packet forwarding enabled and a basic masquerade setup
code:
#!/bin/bash
modprobe iptable_nat
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -j DROP
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE

that gets you packet forwarding and masquerade setup for a subnet of 192.168.0.0, laptop would need ip address of Suse machine for a gateway and the DNS numbers for hostname resolving

It also assume Suse uses eth0 for connection to the internet, modify it as needed, its a very basic script, change the ruleset as needed

if your using wireless I cant help you much, im not familiar enough with it and Suse is debian based, im not too familiar with debian either
 
Status
Not open for further replies.
Back
Top Bottom