Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* problems with IP Masquerade
@ 1999-02-26 22:15 frts
  1999-02-26 22:35 ` B. James Phillippe
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: frts @ 1999-02-26 22:15 UTC (permalink / raw)
  To: axp-list

Hi all,

This time I use 2.0.35 with my alpha and I want to use IP Masquerade.
Followed the howto, selected all the recommended kernel options and bulid
a modular kernel. The 2 ethercards found properly by the kernel.
The modules are O.K. I can modprobe them. 
I do FORWARD_IPV4=true in /etc/sysconfig/network and rebooted. 
But when I want to use ipfwadm  got an error message.

[root@simba /root]# /sbin/ipfwadm -F -p deny 
[root@simba /root]# /sbin/ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0
ipfwadm: setsockopt failed: Invalid argument
 
[root@simba /root]# /sbin/ifconfig 
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:7168  Metric:1
          RX packets:1171 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1171 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 

eth0      Link encap:Ethernet  HWaddr 08:00:2B:27:8D:49  
          inet addr:152.66.151.11  Bcast:152.66.151.255 Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12600 errors:3 dropped:0 overruns:0 frame:6
          TX packets:1596 errors:0 dropped:0 overruns:0 carrier:0
          collisions:103 
          Interrupt:15 Base address:0x200 

eth1      Link encap:Ethernet  HWaddr 00:40:95:15:BE:CC  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 
          Interrupt:10 Base address:0x300 

Thanks for any help,


Istvan



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: problems with IP Masquerade
  1999-02-26 22:15 problems with IP Masquerade frts
@ 1999-02-26 22:35 ` B. James Phillippe
  1999-02-26 22:37 ` Ron Farrer
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: B. James Phillippe @ 1999-02-26 22:35 UTC (permalink / raw)
  To: axp-list

On Fri, 26 Feb 1999 frts@matef.sch.bme.hu wrote:

> Hi all,
> 
> This time I use 2.0.35 with my alpha and I want to use IP Masquerade.
..
> But when I want to use ipfwadm  got an error message.
...
> ipfwadm: setsockopt failed: Invalid argument

You need the ipfwadm from RedHat-5.0.

-bp
--
B. James Phillippe		. bryan@terran.org
Software Engineer, WGT Inc.	. http://www.terran.org/~bryan


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: problems with IP Masquerade
  1999-02-26 22:15 problems with IP Masquerade frts
  1999-02-26 22:35 ` B. James Phillippe
@ 1999-02-26 22:37 ` Ron Farrer
  1999-02-26 22:42 ` Cornelius Creedon
  1999-02-27 17:57 ` Success (was: problems with IP Masquerade) frts
  3 siblings, 0 replies; 5+ messages in thread
From: Ron Farrer @ 1999-02-26 22:37 UTC (permalink / raw)
  To: axp-list


On Fri, 26 Feb 1999 frts@matef.sch.bme.hu wrote:

> Hi all,
> 
> This time I use 2.0.35 with my alpha and I want to use IP Masquerade.
> Followed the howto, selected all the recommended kernel options and bulid
> a modular kernel. The 2 ethercards found properly by the kernel.
> The modules are O.K. I can modprobe them. 
> I do FORWARD_IPV4=true in /etc/sysconfig/network and rebooted. 
> But when I want to use ipfwadm  got an error message.
> 
> [root@simba /root]# /sbin/ipfwadm -F -p deny 
> [root@simba /root]# /sbin/ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0
> ipfwadm: setsockopt failed: Invalid argument
>  

I got the same thing the other day. As an experiment I did a
"/sbin/ipfwadm -F -p masquerade" which produces no errors and works but is
acceptable to a few security issues.... I really don't know why it gives
this error. I am still looking here and there in the FAQ's and HOWTO's for
an answer...


Ron Farrer


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: problems with IP Masquerade
  1999-02-26 22:15 problems with IP Masquerade frts
  1999-02-26 22:35 ` B. James Phillippe
  1999-02-26 22:37 ` Ron Farrer
@ 1999-02-26 22:42 ` Cornelius Creedon
  1999-02-27 17:57 ` Success (was: problems with IP Masquerade) frts
  3 siblings, 0 replies; 5+ messages in thread
From: Cornelius Creedon @ 1999-02-26 22:42 UTC (permalink / raw)
  To: axp-list


have you done an:

echo "1" > /proc/sys/net/ipv4/ip_forward

?

if the kernel has all the right support and you have the ipfwadm package
and it still doesnt work this may be the culprit.

-cc

On Fri, 26 Feb 1999 frts@matef.sch.bme.hu wrote:

> Hi all,
> 
> This time I use 2.0.35 with my alpha and I want to use IP Masquerade.
> Followed the howto, selected all the recommended kernel options and bulid
> a modular kernel. The 2 ethercards found properly by the kernel.
> The modules are O.K. I can modprobe them. 
> I do FORWARD_IPV4=true in /etc/sysconfig/network and rebooted. 
> But when I want to use ipfwadm  got an error message.
> 
> [root@simba /root]# /sbin/ipfwadm -F -p deny 
> [root@simba /root]# /sbin/ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0
> ipfwadm: setsockopt failed: Invalid argument
>  
> [root@simba /root]# /sbin/ifconfig 
> lo        Link encap:Local Loopback  
>           inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
>           UP BROADCAST LOOPBACK RUNNING  MTU:7168  Metric:1
>           RX packets:1171 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:1171 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 
> 
> eth0      Link encap:Ethernet  HWaddr 08:00:2B:27:8D:49  
>           inet addr:152.66.151.11  Bcast:152.66.151.255 Mask:255.255.252.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:12600 errors:3 dropped:0 overruns:0 frame:6
>           TX packets:1596 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:103 
>           Interrupt:15 Base address:0x200 
> 
> eth1      Link encap:Ethernet  HWaddr 00:40:95:15:BE:CC  
>           inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:16 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 
>           Interrupt:10 Base address:0x300 
> 
> Thanks for any help,
> 
> 
> Istvan
> 
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Success (was: problems with IP Masquerade)
  1999-02-26 22:15 problems with IP Masquerade frts
                   ` (2 preceding siblings ...)
  1999-02-26 22:42 ` Cornelius Creedon
@ 1999-02-27 17:57 ` frts
  3 siblings, 0 replies; 5+ messages in thread
From: frts @ 1999-02-27 17:57 UTC (permalink / raw)
  To: axp-list


The problem was solved by installing ipfwadm package from RH5.0.
It's working great now.
Thank you all.

BTW: Is rarp working on RH5.2/alpha?
I can boot up my diskless vax from my intel box, but cannot
from my alpha.Compiled rarp directly into the kernel.


Thanx again,

Istvan


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-02-27 17:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-26 22:15 problems with IP Masquerade frts
1999-02-26 22:35 ` B. James Phillippe
1999-02-26 22:37 ` Ron Farrer
1999-02-26 22:42 ` Cornelius Creedon
1999-02-27 17:57 ` Success (was: problems with IP Masquerade) frts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox